mysql 的一个问题

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)

所有跟帖: 

sub query 加括号 -Epimetheus- 给 Epimetheus 发送悄悄话 (88 bytes) () 12/15/2004 postreply 18:22:26

回复:sub query 加括号 -bbllot- 给 bbllot 发送悄悄话 (28 bytes) () 12/15/2004 postreply 18:36:02

$ mysqld --version -Epimetheus- 给 Epimetheus 发送悄悄话 (144 bytes) () 12/15/2004 postreply 18:47:47

回复:$ mysqld --version -bbllot- 给 bbllot 发送悄悄话 (72 bytes) () 12/15/2004 postreply 19:34:51

回复:回复:$ mysqld --version -bbllot- 给 bbllot 发送悄悄话 (82 bytes) () 12/15/2004 postreply 19:39:31

mysql --version 是客户端 -Epimetheus- 给 Epimetheus 发送悄悄话 (100 bytes) () 12/15/2004 postreply 19:42:52

试试这个 -SQL大师- 给 SQL大师 发送悄悄话 (87 bytes) () 12/15/2004 postreply 19:23:06

反了,要加 negation -Epimetheus- 给 Epimetheus 发送悄悄话 (143 bytes) () 12/15/2004 postreply 19:46:12

哈,没看清,你的也不对,try this -SQL大师- 给 SQL大师 发送悄悄话 (123 bytes) () 12/15/2004 postreply 19:50:42

回复:哈,没看清,你的也不对,try this -bbllot- 给 bbllot 发送悄悄话 (52 bytes) () 12/15/2004 postreply 19:58:51

回复:反了,要加 negation -bbllot- 给 bbllot 发送悄悄话 (210 bytes) () 12/15/2004 postreply 19:52:45

回复:回复:反了,要加 negation -bbllot- 给 bbllot 发送悄悄话 (34 bytes) () 12/15/2004 postreply 19:54:16

哦,subquery从4.1开始,4.0.x也不行 -Epimetheus- 给 Epimetheus 发送悄悄话 (33 bytes) () 12/15/2004 postreply 20:12:15

回复:哦,subquery从4.1开始,4.0.x也不行 -bbllot- 给 bbllot 发送悄悄话 (131 bytes) () 12/15/2004 postreply 20:16:27

不用subquery 的解决方法, 如果 -SQL大师- 给 SQL大师 发送悄悄话 (169 bytes) () 12/15/2004 postreply 20:14:39

嗯大师这招好使 -Epimetheus- 给 Epimetheus 发送悄悄话 (0 bytes) () 12/15/2004 postreply 20:26:14

回复:mysql 里autoincrement 的int 太 -bbllot- 给 bbllot 发送悄悄话 (88 bytes) () 12/15/2004 postreply 20:31:13

lookup in the manual -SQL大师- 给 SQL大师 发送悄悄话 (0 bytes) () 12/15/2004 postreply 20:42:05

mysql 不支持nested query,分开写就行了 -你发烧我看- 给 你发烧我看 发送悄悄话 (0 bytes) () 12/16/2004 postreply 00:46:43

请您先登陆,再发跟帖!