case函數(shù)用法 oracle數(shù)據(jù)庫case函數(shù)的用法請教?
oracle數(shù)據(jù)庫case函數(shù)的用法請教?Count表示計數(shù),即記錄數(shù)。它通常與分組函數(shù)一起使用。sql:選擇userId,按userId從tablename group中count(*),Case表
oracle數(shù)據(jù)庫case函數(shù)的用法請教?
Count表示計數(shù),即記錄數(shù)。它通常與分組函數(shù)一起使用。sql:選擇userId,按userId從tablename group中count(*),Case表示多條件判斷。SQL:選擇ename,case when Sal<1000 then “l(fā)ower”when Sal>1001 and Sal<2000 then “moderate”when Sal>2001 and Sal<4000 then “high”else “too high”end from EMP上述句子是判斷薪資等級的簡單案例用法。