Oracle中 建立视图的同时新增字段(经常使用函数:decode,NVL,NVL2)

在视图v_user中额外增长一列type,给其取值1.sql create or replace view v_user as select *, '1' as type from user; 这次用到的函数:函数 一、decode:翻译 decode(value,a,val1,val2) 能够翻译成: if(value==a){ val1; }else
相关文章
相关标签/搜索