查询mysql中没有主键的表

转载来自wc城,感谢mysql  1.查询语句sql select concat('alter table ',table_schema,'.',table_name,' add column pkid bigint not null auto_increment primary key;') from information_schema.tables where (table_schema
相关文章
相关标签/搜索