- SELECT count(1) FROM information_schema.TABLES t, information_schema.SCHEMATA n WHERE t.table_name = #{tableName} AND n.SCHEMA_NAME = #{dataBaseName};
+ SELECT count(1) FROM information_schema.TABLES WHERE TABLE_SCHEMA = #{dataBaseName} AND TABLE_NAME = #{tableName};