ITeye博客

Oracle 函数

lan13217 · 2014-04-10 10:04 · Oracle · 数据库 · Markdown


--decode函数替换
update table
   set clumn = DECODE(clumn0,
                          NULL,
                          DECODE(clumn1,
                                 NULL,
                                 DECODE(clumn2,
                                        NULL,
                                        DECODE(clumn3, NULL, NULL, clumn3),
                                        clumn2),
                                 clumn1),
                          clumn0)
 where clumn is null;
 
--检测字段长度
select * from table where length(clumn)>56

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。