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%'