Lists: | pgsql-php |
---|
From: | hatem gamal elzanaty <hatem(at)softpro(dot)bz> |
---|---|
To: | pgsql-php(at)postgresql(dot)org |
Subject: | syntax problem |
Date: | 2011-05-12 21:09:20 |
Message-ID: | 4DCC4C80.1070705@softpro.bz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-php |
hi,
i'm a php/mysql developer and want to work also with php/postgresql can
you please tell me if there is a replacment for this sign ` in mysql to
work with in postgresql to avoid problem of naming tables with reseved words
thanks in advance
From: | Rich Shepard <rshepard(at)appl-ecosys(dot)com> |
---|---|
To: | pgsql-php(at)postgresql(dot)org |
Subject: | Re: syntax problem |
Date: | 2011-05-12 22:49:18 |
Message-ID: | alpine.LNX.2.00.1105121548270.26367@salmo.appl-ecosys.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-php |
On Fri, 13 May 2011, hatem gamal elzanaty wrote:
> i'm a php/mysql developer and want to work also with php/postgresql can
> you please tell me if there is a replacment for this sign ` in mysql to
> work with in postgresql to avoid problem of naming tables with reseved
> words thanks in advance
You can find a list of postgres reserved words on the Web site. It is
comprehensive.
Rich
From: | Chris <dmagick(at)gmail(dot)com> |
---|---|
To: | pgsql-php(at)postgresql(dot)org |
Subject: | Re: syntax problem |
Date: | 2011-05-12 23:00:42 |
Message-ID: | 4DCC669A.6090509@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-php |
On 13/05/11 07:09, hatem gamal elzanaty wrote:
> hi,
> i'm a php/mysql developer and want to work also with php/postgresql can
> you please tell me if there is a replacment for this sign ` in mysql to
> work with in postgresql to avoid problem of naming tables with reseved
> words
You can put double quotes around them but you have to do it all the time
so if you can, I'd suggest renaming the fields and tables to avoid those
words in the first place.
The list Rich mentioned is here:
http://www.postgresql.org/docs/current/static/sql-keywords-appendix.html
--
Postgresql & php tutorials
http://www.designmagick.com/