You are here: Re: [PHP] error when trying to delete a record « PHP « IT news, forums, messages
Re: [PHP] error when trying to delete a record

Posted by Paul Waring on 07/11/05 17:33

On Mon, Jul 11, 2005 at 03:25:33PM +0100, Mark Rees wrote:
> with no single quotes round it. Putting quotes round integer values is
> counter-intuitive - is it necessary in some cases?

If the field is a numeric type (e.g. INT) as opposed to numeric data
being stored in a character field (e.g. a telephone number) then it is
not only unnecessary to quote the value, it's also incorrect useage of
SQL, although you'd probably get away with it in most database systems.

Paul

--
Rogue Tory
http://www.roguetory.org.uk

 

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

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