随笔分类 -  Mysql

摘要:普通索引 添加索引:alter table t1 add index idx_name(name);删除索引:alter table t1 drop index idx_name; 唯一索引 添加索引:alter table t1 add unique uni_name(name);删除索引:alter table t1 drop index uni_name; 阅读全文
posted @ 2019-04-14 21:59 yach_yu 阅读(947) 评论(0) 推荐(0)
摘要:字段添加 添加sex字段: alter table t1 add sex tinyint not null;在name字段后面添加sex字段: alter table t1 add sex tinyint not null after name;在第一列添加sex字段 alter table t1 add sex tinyint not null first; 字段删除 a... 阅读全文
posted @ 2019-04-14 21:53 yach_yu 阅读(364) 评论(0) 推荐(0)
摘要:源表单据 汇总要求 两种sql方式实现 阅读全文
posted @ 2019-04-14 18:26 yach_yu 阅读(1015) 评论(0) 推荐(0)