RE: [PHP-DB] MS Access and MySQL

From: Date: Mon, 12 Mar 2001 16:57:50 +0000
Subject: RE: [PHP-DB] MS Access and MySQL
Groups: php.db 
Request: Send a blank email to php-db+get-7335@lists.php.net to get a copy of this message
You could re-write the query not to use inner joins: SELECT [tbl_medien].[titel], [tbl_medien].[ausgabe], [tbl_medien].[URL], [tbl_medien].[medientypID], [tbl_autor].[name], [tbl_autor].[vorname] FROM tbl_medien,tbl_autor,tbl_zuordnung_autoren_medien WHERE [tbl_autor].[autorenID]=[tbl_zuordnung_autoren_medien].[autorenID] AND [tbl_medien].[medienID]=[tbl_zuordnung_autoren_medien].[medienID] AND [tbl_medien].[medientypID])='$medium'; Hope this helps... _____ ~ Richard Allsebrook ~ Applications Developer and Webmaster Easysoft Limited, Thorp Arch Grange, Thorp Arch, Wetherby, LS23 7BA, UK http://www.easysoft.com <http://www.easysoft.com> - http://www.cinema.com <http://www.cinema.com> "A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila." _____ -----Original Message----- From: p.schaefer [mailto:p.schaefer@magna-moliri.de] Sent: Monday, March 12, 2001 4:54 PM To: php-db Subject: FW: [PHP-DB] MS Access and MySQL This join works perfectly in Access but if I use the same query in MySQL it shits it's pants. SELECT [tbl_medien].[titel], [tbl_medien].[ausgabe], [tbl_medien].[URL], [tbl_medien].[medientypID], [tbl_autor].[name], [tbl_autor].[vorname] FROM tbl_medien INNER JOIN (tbl_autor INNER JOIN tbl_zuordnung_autoren_medien ON [tbl_autor].[autorenID]=[tbl_zuordnung_autoren_medien].[autorenID]) ON [tbl_medien].[medienID]=[tbl_zuordnung_autoren_medien].[medienID] WHERE ((([tbl_medien].[medientypID])='$medium')); Thanks, Patrick Patrick Schäfer magna moliri Projektmanagementgesellschaft mbH & Co.KG Hanauer Landstraße 184 60314 Frankfurt am Main Telefon ++49 (0)69 / 904 322-0 Mobil ++49 (0)171 / 9928016 Fax ++49 (0)69 / 904 322-200 p.schaefer@magna-moliri.de -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

Attachment: [application/rtf]
« previous php.db (#7335) next »