You are here: Re: php sql "DROP TABLE" command « PHP Programming Language « IT news, forums, messages
Re: php sql "DROP TABLE" command

Posted by Tim Roberts on 11/14/07 07:19

"Sanders Kaufman" <bucky@kaufman.net> wrote:
>"Toby A Inkster" <usenet200707@tobyinkster.co.uk> wrote:
>> John S. wrote:
>>
>>> $sql = "DROP TABLE IF EXISTS 'products'";
>>> $result = mysql_query($sql,$conn);
>>
>> Single and double quote marks have very specific meanings in SQL. You want
>> to wrap the table name in double quotes, not single.
>
>I was under the impression that square braces were the way to go:
>$sSQL = "DROP TABLE IF EXISTS [products]";

No, that's a Microsoft extension that only works in Access. It isn't SQL.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

 

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

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