ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-db
php-db
[PHP-DB] delte stmt problem with joins
by Merlin other posts by this author
Aug 29 2003 1:33PM messages near this date
Re: [PHP-DB] MySQL: CREATE TABLE, BLOB, UNIQUE, INDEX etc | Re: [PHP-DB] delte stmt problem with joins
Hi there,

I would like to delete a row inside a mysql table. To find out which 
rows are affected the system has to check another table.

Somehow I am doing this statement wrong and I cant find out why. Does 
anybody see the error?
Thanx for any help on that.

DELETE
	FROM $table1 pi
RIGHT  JOIN $table2 AS p ON p.ID = pi.product_id
WHERE p.owner_id =  '15173'

Merlin

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Merlin
John W. Holmes
Merlin
John W. Holmes

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved