查询null以及length(),trim()使用

来源:互联网 发布:华硕电池修复软件 编辑:程序博客网 时间:2024/06/06 03:02
select * from stu_course t--  产品select * from stu_course t where t.is_publish='Y' and t.pid is null --  模块select t.*,length(trim(t.code)) lengthhh from stu_course t where t.is_publish='Y' and t.pid is not null and length(trim(t.code))>4--    select * from   student s  where     s.sno= 183  order by               ---    nvl(length(trim(s.sname)),0) asc -- 递增排序            -- nvl(attribute,default value) 当属性值为空时就将其值设默认值            -- length(attrbute) 得到字符串的长度            -- trim(attribute) 去掉字符的空格  


原创粉丝点击