You are here: Re: MySQL query on multiple tables ? « PHP Programming Language « IT news, forums, messages
Re: MySQL query on multiple tables ?

Posted by Shelly on 09/28/38 11:22

"Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
> I'm not an SQL expert but you could probably do
>
> SELECT DISTINCT col1,col2,col3... FROM tbl1,tbl2,tbl3 WHERE
> tbl1.id=tbl2.id AND tbl2.id=tbl3.id AND (bio109 ='A' OR history101='B')

You beat me to it. This is basic SQL, and has nothing to do with PHP. I
just had to do one for myself where I did:

select a.*, b.field1 from a, b where a.id=b.id;

Shelly

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация