摘要:
方法一、You don't need to count anything.SELECT 1 FROM testtable LIMIT 1;If there's no error, table exists.方法二、Or, if you want to be correct, use INFORMATION_SCHEMA.SELECT * FROM information_schema.tablesWHERE table_schema = 'yourdb' AND table_name = 'testtable'LIMIT 1;方法三、Altern 阅读全文
posted @ 2013-11-07 11:49
清新每一天
阅读(1295)
评论(0)
推荐(0)

浙公网安备 33010602011771号