RSS Forums RSS
Please support our MySQL advertiser: Programming Forums
Views: 12920 | Replies: 1
Reply
Join Date: Oct 2004
Location: Singapore
Posts: 7
Reputation: qazs is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
qazs qazs is offline Offline
Newbie Poster

Delete from multiple tables

  #1  
Jun 3rd, 2005
Hi,
How can I delete from multiple tables?
I'm using this query and its not working:
"DELETE FROM table1,table2 WHERE
$localTime > table1.Time OR $localTime > table2.Time";

What I hope to achieve is deleting rows from table1 and table2 where
their Time Field is less than $localTime.

Thanks very much.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Location: Kansas City, Missouri, USA
Posts: 345
Reputation: Troy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: Delete from multiple tables

  #2  
Jun 9th, 2005
"DELETE FROM table1 WHERE $localTime > Time; DELETE FROM table2 WHERE $localTime > Time";
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:34 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC