Re: Looking for help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



2002. augusztus 28. 01:05 dátummal Patrick Hatcher ezt írta:
>  Use quotes around the field and table names that are not all lower
> case:
>
> Ex:
> $result = pg_query($db," Select 'Field1',field2, 'fEild3'
> From'TABLE1' ");
>

AFAIK, opstgres needs double quotes to handle objects' names literally
-- as written:

$result = pg_query($db,' Select "Field1",field2, "fiEld3"
 From "TABLE1"');

text within simple quotes represents string literals.

-- 
Papp, Győző
- pgerzson@xxxxxxxxxxxx



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux