典型SQL題(多表聯查)

1. 數據庫表A 有個字段a是int類型  a中有數據有1到9任意(有重複的)  想取得a中,當 a=1時 a=2時 a=3…… 各一條記錄的列表  select top 1 * from A where a=1  union  select top 1 * from A where a=2  ...  union  select top 1 * from A where a=9  2. S(SN
相關文章
相關標籤/搜索