RE: [PHP] fix my query please

From: Date: Tue, 28 Aug 2001 21:12:06 +0000
Subject: RE: [PHP] fix my query please
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64878@lists.php.net to get a copy of this message
It has outer joins: http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#JOI N HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 x289 smasiello@synacor.com -----Original Message----- From: Martín Marqués [mailto:martin@bugs.unl.edu.ar] Sent: Tuesday, August 28, 2001 4:35 PM To: jeremy@prepresshelp.com; php-general@lists.php.net Subject: Re: [PHP] fix my query please On Mar 28 Ago 2001 17:29, Jeremy Morano wrote: > an somebody please fix up my query. > > > > > $connection = @mysql_connect("l", "c", "c") or > die("Couldn't connect."); > > $db = @mysql_select_db($db_name, $connection) or die("Couldn't select > database."); > > > > $sql = "SELECT distinct users.uid , users.username > FROM users LEFT OUTER JOIN picks using(id) Am I an ignorant, or MySQL doesn't have OUTER JOINs!!!! > Where users.uid <> picks.user_id > "; [snip] Saludos... :-) -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral ----------------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#64878) next »