[摘要] 1. 創建測試表TBL_STAT,及索引,但不插入記錄SQL> create table TBL_STAT as select * from dba_objects where 1<>1;Table created.SQL> create index idx_tbl_stat on tbl_stat[全文]
[摘要] 需求:現在oracle數據庫中有字段is_use 的有:null,0,1,2。現在需要查詢不等于2的數據解決辦法的sql:select * from uc_Users where nvl(is_use,'xx')<>'2'=======================================...[全文]