Skip to content
Advertisement

Select table names with specific pattern

I created a query to get all table names with "prefix_"

But in my database, I have tables with prefix_prefix_. How to avoid selecting them?

Advertisement

Answer

You can do this by just adding the exception to the where clause.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement