2018年8月2日
摘要: 环境准备: 创建表的语句: 原先表结构如下 1 创建索引 语法 alter table 表名 add index 索引名(列名); mysql> alter table student add index idx_cid(classid); 查看效果:desc student 在MySQL中key的 阅读全文
posted @ 2018-08-02 21:10 90500042陈 阅读(270) 评论(0) 推荐(0) 编辑
摘要: concat配合information_schema的应用 1 concat的一般用法主要是用于拼接 示例: 执行语句 SELECT CONCAT('M','y','S','Q','L') 可以达到如下效果 2 在写SQL备份语句时,假定要导出三张表分别为world下的 之前我们写备份语句要写三条 阅读全文
posted @ 2018-08-02 15:05 90500042陈 阅读(65374) 评论(0) 推荐(0) 编辑