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