i havent done this very long time..may not work..

來源: PantyM 2006-05-04 17:41:30 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (135 bytes)
update table_name
set order_id = (select max(order_id) from table_name) + 1
where order_id = 0;

also lots of other ways...

所有跟帖: 

我查過SQL Reference了,這應該是可行的。。 -PantyM- 給 PantyM 發送悄悄話 (115 bytes) () 05/04/2006 postreply 21:42:09

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”