Re: select from differents tables...

From: Date: Thu, 27 Sep 2001 23:23:19 +0000
Subject: Re: select from differents tables...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69069@lists.php.net to get a copy of this message
what do these tables have in common? do they all have a date column? if so, you're query doesn't know which date column to look at.... also, I assume (I know, dangerous, but it's a safe assumption I think..) that you are using mysql? join the mysql list for sql related questions.... while there are lots of people on this list that know SQL and can help you, the focus is on PHP, not SQL.... Jason ----- Original Message ----- From: "Romeo Manzur" <rmanzur@yahoo.com> To: <php-general@lists.php.net> Sent: Thursday, September 27, 2001 4:09 PM Subject: [PHP] select from differents tables... > I want to select all the fields from differents tables to get only 6 > principals items ordered by date desc... > I try with: > select * from table1,table2,table3 where date = 'today' order by date > limit 6 > > > -- > 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 (#69069) next »