雨鸣静声

关注

主键有无检测

雨鸣静声

关注

阅读 11

2022-08-03

 

 

select a.table_schema,a.table_name 

from information_schema.tables a left outer join information_schema.table_constraints b

on a.table_schema = b.table_schema and a.table_name = b.table_name and b.constraint_name in ('PRIMARY')

where b.table_name is null and a.table_schema not in ('information_schema','performance_schema','test','mysql', 'sys');

 


相关推荐

一葉_code

如何检测电脑有无恶意软件并处理掉?

一葉_code 12 0 0

仲秋花似锦

可以检测有无水的光电传感器有哪些

仲秋花似锦 75 0 0

逸省

Js判断对象有无属性

逸省 157 0 0

爱喝酒的幸福人

java如何数组内有无内容

爱喝酒的幸福人 102 0 0

夜空一星

[数据集][目标检测]金属架螺栓螺丝有无检测数据集VOC+YOLO格式857张3类别

夜空一星 14 0 0

陆佃

MySQL约束——添加主键约束(联合主键)、删除主键约束

陆佃 82 0 0

树下的老石头

mysql修改主键为组合主键

树下的老石头 66 0 0

左手梦圆

[软件人生]有无选择之间的对话

左手梦圆 26 0 0

蛇发女妖

删除主键

蛇发女妖 54 0 0

月半小夜曲_

主键设计

月半小夜曲_ 70 0 0

精彩评论(0)

0 0 举报