
SQL
wuweiforever
这个作者很懒,什么都没留下…
展开
-
用oracle的merge实现mysql的replace into
Mysql中Replace into在Oracle中实现转载 2022-03-10 14:24:10 · 1027 阅读 · 0 评论 -
Mysql使用总结
一、对null和空字符串的判断 1.对null 的判断: --方法1: select * from user where name is not null; --方法2: select * from user where ISNULL(name)=0 2.对空字符串的判断: select * from user where LENGTH(trim(name))>0; 3.在函数或者存储过程中判断是否为null 或者 空字符串 SELECT id,name, CASE W.原创 2021-01-22 16:57:35 · 133 阅读 · 0 评论