04 2019 档案

摘要:索引:作用 便捷化检索表中行和列的子集,而不需要检查表中的每一行。 创建索引: 1、Alter table A ADD index A_indexname (A.name); Mysql 2、Create index A_indexname ON A (name) Oracle、SQL Server 阅读全文
posted @ 2019-04-30 15:52 真。。。 阅读(731) 评论(0) 推荐(0)
摘要:MySQL只能将BLOB/TEXT类型字段设置索引为BLOB/TEXT数据的前N个字符.索引指定下col2的长度就可以了 :alter table foo add index col_2 (col2(10)); 阅读全文
posted @ 2019-04-30 15:29 真。。。 阅读(922) 评论(0) 推荐(0)
摘要:distinct 字段A 根据字段A去掉重复数据,需要写在查询字段的最前面(例:select distinct feild1,feild2 from table) · 阅读全文
posted @ 2019-04-13 15:32 真。。。 阅读(144) 评论(0) 推荐(0)