mysql - Select ___where __LIKE ___ -


i want select tables don't contain character _ database, used request :

select table_name  information_schema.tables  table_schema="db_name" , table_name not '%_%';  

but doesn't seem work.

the underscore (_) single character wildcard in sql's like operator. if want treat regular charater, you'll have explicitly escape it:

select table_name    information_schema.tables   table_schema='db_name' , table_name not '%\_%' escape `\`; 

Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -