摘要: 1.导出报错解决办法: Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 0.000 sec 一开始这样写的时候会报 阅读全文
posted @ 2019-09-19 14:27 寅鸷 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 在数据库中添加一列,并设置自增 注意设置自增时要将该字段设置为主键,如果不指定插入位置则默认为列名的最后。 指定插入在某一列之后 1 alter table test.student add column indexxx int(14) primary key auto_increment afte 阅读全文
posted @ 2019-09-19 13:43 寅鸷 阅读(9224) 评论(0) 推荐(0) 编辑
摘要: 转载自https://www.cnblogs.com/lqw4/p/4831463.html show columns FROM tablename; select COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_NAME='table 阅读全文
posted @ 2019-09-19 11:23 寅鸷 阅读(8919) 评论(0) 推荐(0) 编辑