表1 T10(ID)表加入其中
id
---
1
2
表T11(A1,A2,A3)
a1 a2 a3
----------
1 10 a
1 10 b
1 11 b
1 12 c
2 20 d
2 21 e
SELECT * FROM T10一個,T11 b其中a.id = b.a1 如何顯示
剛剛獲得T11的隨機行
maybe display this
id a1 a2
----------
1 1 11 b
1 1 10 a //(not display this row)
1 1 10 b //(not display this row)
1 1 12 c //(not display this row)
2 2 20
2 2 21 //(not display this row)
這些都是一些可怕的表和列名... – cjk 2009-11-26 08:08:12
只是試井 – shuc 2009-11-26 08:20:49
您正在使用什麼數據庫? – 2009-11-26 08:29:45