作者colmash (col)
看板Database
標題[SQL ][MYSQL]請問一個SELECT的下法..
時間Thu Nov 23 15:01:44 2006
資料庫名稱:MYSQL
資料庫版本:4.0.23a
內容/問題描述:
請問
有兩個table user,一個table裡有userPky,
另一個table messageLst裡有userPky和messagePky
user: messageList
userPky userName userPky messagePky
1 col 1 0
2 colMA 1 1
3 ccc 1 2
2 3
2 4
2 5
1 6
2 7
請問在這種情況下
我要怎樣選出
userPky為1和2的前三筆呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 124.10.4.193
1F:推 noguest:請參考377篇, 用類似的方法即可 11/23 15:11
2F:推 colmash:感謝..我再試試 11/23 15:41
3F:推 pakker:以什麼排列的前三筆? 11/25 00:01