教你使用SQL查詢(1 12)

2022-02-15 08:24:16 字數 373 閱讀 2517

教你使用 select 查詢語句

(1) select 語句基本語法簡介 

(2) top 和 offset 篩選 

(3) sql server 資料型別簡介 

(4) select查詢中的謂詞與case表示式 

(5) 在select查詢中使用join連線 

(6)  在select 查詢使用子查詢 

(7) 在select 查詢使用表表示式 

(8) 在select 查詢使用集運算子 

(9) 在 select 查詢中使用開窗函式 

(10) 在 select 查詢中使用分組集  

(11) 在 select 查詢中使用透視 

(12) 使用動態查詢 

習題11 2 查詢星期

習題11 2 查詢星期 15分 本題要求實現函式,可以根據下表查詢到星期,返回對應的序號。序號星期 0sunday 1monday 2tuesday 3wednesday 4thursday 5friday 6saturday int getindex char s 函式getindex應返回字串s...

sql鑲嵌查詢 SQL 查詢巢狀使用

示例表如下 create table it student id int primary key auto increment,主鍵id name varchar 20 姓名 gender enum male female 性別 class id tinyint unsigned,班級號 age i...

2 24 習題11 2 查詢星期

本題要求實現函式,可以根據下表查詢到星期,返回對應的序號。0 sunday 1 monday 2 tuesday 3 wednesday 4 thursday 5 friday 6 saturday int getindex char s 函式getindex應返回字串s序號。如果傳入的引數s不是乙...