08 2021 档案
摘要:lpad()和Rpad()函数是Oracle数据库函数,lpad函数从左边对字符串使用指定的字符进行填充,Rpad则是从右边对字符串使用指定的字符进行填充。从其字面意思也可以理解,l是left的简写,pad是填充的意思,所以lpad就是从左边填充的意思,Rpad同理。 语法格式如下: lpad( s
阅读全文
摘要:常规写法: select * from temp where 字段1 is null and 字段2 is not null or 字段1 is not null and 字段2 is null 高级写法: select * from temp where decode(字段1,null,0,1)
阅读全文

浙公网安备 33010602011771号