06 2019 档案
coalesce()
摘要:使用count()函数时需要注意 SELECT count(DISTINCT COALESCE(user_name, 'NULL')) AS num FROM t_user;
阅读全文
mysql 针对table的查看命令行
摘要:1 desc t_help; 2 show create table t_help; 3 show table status like 't_help';
阅读全文
mysql 小数位
摘要:1 select convert(t/100,decimal(15,2)) as a from user (1) convert() 一、在mysql操作中我们经常需要对数据进行类型转换。此时我们应该使用的是cast()或convert()。 二、两者的对比 相同点:都是进行数据类型转换,实现的功能
阅读全文