Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 100 张桌子。一些表包含表名“plan_2”,其中一些表包含“temp”。
那么我怎样才能只选择不包含“temp”的“plan_2”表。
我的查询不起作用。
$result=mysql_query("SHOW TABLES LIKE 'plan_2%' AND TABLES NOT LIKE '%temp%'");
select table_name from information_schema.tables where table_name LIKE '%plan_2%' and table_name NOT LIKE '%temp%'