You are here: Re: Whats the most portable way to identify field existence? « PHP SQL « IT news, forums, messages
Re: Whats the most portable way to identify field existence?

Posted by Virginner on 09/27/07 10:26

<tom@thumb.com> wrote in message
news:MPG.21619aec8b216c7e9899cc@news-text.blueyonder.co.uk...
>
> Thats field not table -
>
> I just want to see if a particular field exists in a specified table and
> for the method to work reliably on as many mySQL versions as possible.
>
> Obviously the most efficient would be best - I can't see anything in the
> mySQL docs to do this. Did I miss it?
>
> thanks.
>
> Tom.

SHOW FIELDS FROM tablename LIKE 'fieldname'

 

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

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