zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

实战:第十六章:判断Mysql库中是否存在某表

2023-02-26 09:51:34 时间

sql查询库中是否存在该表

案例:

SHOW TABLES IN dreamweb_gjfgw WHERE Tables_in_dreamweb_gjfgw =‘g_app_data_service_log’

格式:

SHOW TABLES IN 数据库名称 WHERE Tables_in_数据库名称 =‘表名称’

Sql sql = new Sql("SHOW TABLES IN dreamweb_gjfgw WHERE Tables_in_dreamweb_gjfgw ='g_app_data_service_log';");
DataTable dataTable = DBManager.getDataTable(sql);
12

更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/120583550