发布网友 发布时间:2022-04-11 00:36
共2个回答
懂视网 时间:2022-04-11 04:58
COUNT(*) AS ct FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = ‘表名‘;
判断字段是否存在:
SELECT COUNT(*) AS ct FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = ‘表名‘ AND COLUMN_NAME = ‘字段名‘;
Sql记录:判断表或字段是否存在
标签:数据类型 文件 count 存在 详细 and 而不是 table from
热心网友 时间:2022-04-11 02:06
Select