Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot

Links

XODOX
Impressum

#1: syntax problem

Posted on 2011-05-12 23:09:20 by hatem gamal elzanaty

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

--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Report this message

#2: Re: syntax problem

Posted on 2011-05-13 00:49:18 by Rich Shepard

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

--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Report this message

#3: Re: syntax problem

Posted on 2011-05-13 01:00:42 by dmagick

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-a ppendix.html

--
Postgresql & php tutorials
http://www.designmagick.com/


--
Sent via pgsql-php mailing list (pgsql-php@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php

Report this message