HI所有的底部,MySQL的選擇的id *,但地方陣列結果
,如果我做了select * from table
ID
列的輸出將是1,2,3,4,5,6,7 ,8,9 ...等。
有無論如何我可以做一個select * from table where id not in (3,6,9)
然後在一個查詢select * from table where id in (3,6,9)
所以輸出將像 1,2,4,5,7,8,10 .... 3,6,9 ???
謝謝。
編輯:
select * from table order by ts desc
然後select * from table where id in (3,6,9)
?
re:你的編輯:應該是? 'select * from table where id not in(3,6,9)order by ts desc' then'select * from table where id in(3,6,9)' – 2011-05-03 16:18:28