oracle筛选字段长度

length(字段)函数可以判断某字段的长度

使用案例:

select * from tbName where length(nvl(alias,''))<= 4

其中:

  • length( nvl(str1,''))使用nvl函数是为了筛选时把结果为null的值过滤掉

猜你喜欢

转载自blog.csdn.net/weixin_40626699/article/details/88655875