mysql: What is the right syntax for NOT LIKE?

后端 未结 3 1275
后悔当初
后悔当初 2020-12-15 22:19

Hi I am trying to show tables with names not like a pattern by mysql is throws an error:

SHOW TABLES  NOT LIKE  \"tree%\";

returns:

3条回答
  •  悲哀的现实
    2020-12-15 22:59

    LIKE and NOT LIKE are used with SELECT statements. I don't think this works with the SHOW TABLES command.

提交回复
热议问题