Hi,

I have a problem with nested delete query. I want to
delete some record from one table based on the select
result of another query. e.g.

delete from tab1 where uid in (select uid from tab2
where today >= 'any_date');

Will it work?

I tried, but it says that 'syntex error near
'select.....' at line 1.

If anybody know how to do that, ple let me know.

Thanks in advance.

Ram

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to