Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem converting a oracle sql to mysql

Status
Not open for further replies.

coolkille

Programmer
Mar 17, 2004
1
SE
This is working on oracle but not on mysql.
Nead help to solve this.
Regards Miakel


update phpmod_listings b set b.image = 1 where exists ( select a.listing_id from phpmod_listings_images a where a.id=b.id);
 
Which version of MySQL are you using? You need version 4.1 to do a sub-select.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top