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
相關文章
相關標籤/搜索