
mysql学习
莫名其喵
被人嘲笑的梦想才有实现的价值!
展开
-
mysql double 与 decimal 的区别
1 、double的存储值最大为16位,保留几位小数可以设置, 比如double(10,2),小数点的左右两边的位数加起来不能超过10位2 、decimal 的最大存储值为38位,保留几位小数可以设置, 比如decimal(10,2)的存储值为:左边最大值为7位,小数点候保留2位小数,加起来最大值为10位, 小数点的左右两边的位数加起来不能超过10位...原创 2018-06-15 09:47:14 · 18908 阅读 · 1 评论 -
mysql 查询重复与删除重复数据
一、根据身份证查询重复数据方法、select count(*) as repeat_count,sfzhm from gaj_gx_hjxx_copy1 group by sfzhm having repeat_count > 1;二、过滤重复数据方法1、select distinct name,age from test_01;方法2、select name,age,g...原创 2018-12-26 09:59:07 · 4567 阅读 · 0 评论