随笔分类 -  mysql

摘要:导出select */字段列表 + from 数据源(可表可库) + into outfile + '文件存储路径';导入load data infile + '文件存储路径' + into table + 表名 + [字段列表] + fields + 字段处理 + lines + 行处理; 阅读全文
posted @ 2018-01-22 23:05 墨.荷 阅读(128) 评论(0) 推荐(0)
摘要:表结构复制(带数据)create table new select * from old 表结构复制(不带数据)create table new select * from old where 1=2这里给个where条件1=2是为了差不出数据给个空表 表结构复制(like关键字)create ta 阅读全文
posted @ 2018-01-22 23:03 墨.荷 阅读(186) 评论(0) 推荐(0)
摘要:alter table test change id id int AUTO_INCREMENT; 阅读全文
posted @ 2018-01-22 23:01 墨.荷 阅读(15124) 评论(0) 推荐(1)