delete FROM occurrence
WHERE page_id NOT IN
select page_id from page
我運行上麵的命令..它一直說我錯..高手幫幫忙..謝謝了
table:
occurrence(page_id, word_id, occurrence_id)
page(page_id, page_url)
mysql 的一個問題
所有跟帖:
• sub query 加括號 -Epimetheus- ♂ (88 bytes) () 12/15/2004 postreply 18:22:26
• 回複:sub query 加括號 -bbllot- ♀ (28 bytes) () 12/15/2004 postreply 18:36:02
• $ mysqld --version -Epimetheus- ♂ (144 bytes) () 12/15/2004 postreply 18:47:47
• 回複:$ mysqld --version -bbllot- ♀ (72 bytes) () 12/15/2004 postreply 19:34:51
• 回複:回複:$ mysqld --version -bbllot- ♀ (82 bytes) () 12/15/2004 postreply 19:39:31
• mysql --version 是客戶端 -Epimetheus- ♂ (100 bytes) () 12/15/2004 postreply 19:42:52
• 試試這個 -SQL大師- ♀ (87 bytes) () 12/15/2004 postreply 19:23:06
• 反了,要加 negation -Epimetheus- ♂ (143 bytes) () 12/15/2004 postreply 19:46:12
• 哈,沒看清,你的也不對,try this -SQL大師- ♀ (123 bytes) () 12/15/2004 postreply 19:50:42
• 回複:哈,沒看清,你的也不對,try this -bbllot- ♀ (52 bytes) () 12/15/2004 postreply 19:58:51
• 回複:反了,要加 negation -bbllot- ♀ (210 bytes) () 12/15/2004 postreply 19:52:45
• 回複:回複:反了,要加 negation -bbllot- ♀ (34 bytes) () 12/15/2004 postreply 19:54:16
• 哦,subquery從4.1開始,4.0.x也不行 -Epimetheus- ♂ (33 bytes) () 12/15/2004 postreply 20:12:15
• 回複:哦,subquery從4.1開始,4.0.x也不行 -bbllot- ♀ (131 bytes) () 12/15/2004 postreply 20:16:27
• 不用subquery 的解決方法, 如果 -SQL大師- ♀ (169 bytes) () 12/15/2004 postreply 20:14:39
• 嗯大師這招好使 -Epimetheus- ♂ (0 bytes) () 12/15/2004 postreply 20:26:14
• 回複:mysql 裏autoincrement 的int 太 -bbllot- ♀ (88 bytes) () 12/15/2004 postreply 20:31:13
• lookup in the manual -SQL大師- ♀ (0 bytes) () 12/15/2004 postreply 20:42:05
• mysql 不支持nested query,分開寫就行了 -你發燒我看- ♂ (0 bytes) () 12/16/2004 postreply 00:46:43