You are here: Re: counting total in/after while loop « PHP Programming Language « IT news, forums, messages
Re: counting total in/after while loop

Posted by Ryan Lange on 11/04/29 11:41

Ja NE wrote:
> it is working... maybe is there some shorter and more eficient way, but
> I just don't understood arrays yet/still...

What database are you using? The following works in PostgreSQL 8.1:

'SELECT * FROM photo
WHERE album_id NOT IN (SELECT album_id FROM album)'

This will return all of the records in table "photo" that belong to
an album that doesn't have a corresponding ID in table "album".

- Ryan

 

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

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