IP屬地:廣東
獨(dú)立子查詢: select * from TblStudent where tSClassId = (select tClassId from ...
索引的目的:提高查詢效率。 索引的分兩種: 1.聚集索引(物理):一個(gè)表中只能有一個(gè)索引 2.非聚集索引(邏輯):一個(gè)表中可以有多個(gè)索引 使用索...
case的使用1:相當(dāng)于C#中的if else 例子1: select *, 頭銜=case when autoId = 1 then ...
當(dāng)使用圖二中的寫法定義SqlParamter時(shí),會將0認(rèn)為是個(gè)枚舉變量,其寫法等同于圖二中的下一行。
int n = 10; string s = "hello"; //n = null; 編譯器報(bào)錯(cuò) //s = null; int? n1 = ...