Re: Looking for help

From: "Cornelia Boenigk" <poppcorn(at)cornelia-boenigk(dot)de>
To: "Joseph L Montes" <jmontes(at)zenplex(dot)com>, <pgsql-php(at)postgresql(dot)org>
Subject: Re: Looking for help
Date: 2002-08-27 23:20:42
Message-ID: 004301c24e20$7d622820$7f54fea9@zwerg98
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Hi Joseph

> but What happens
> if I only want to select a couple of fields.
Then you tell the server which fields you want to select;-)

SELECT field1, field2, ... , fieldn FROM table ...

> how do you select from a table that is not all lower case
what do you mean? what is not all lower case?
PostgreSQL returns the contents of the fields as they are. If you need
the results to be in lower case use
SELECT lower(fieldx), lower(field2),... FROM table
respectively
SELECT upper(field1), upper(field2), ... FROM table.

See chapter 4.4 of the PostgreSQL user's Guide for more.

The PHP-Functions to change case are strtoupper() and strtolower().

Hope it helps

Regards
Conni

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Gary Hoffman 2002-08-27 23:23:58 Re: Web Hosting
Previous Message Bryan Bullard 2002-08-27 23:09:20 Re: Web Hosting