pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cornelia Boenigk <poppcorn@cornelia-boenigk.de>
To: Joseph L Montes <jmontes@zenplex.com>
To: pgsql-php@postgresql.org
Subject: Re: Looking for help
Date: Wed, 28 Aug 2002 01:20:42 +0200
Message-ID: <004301c24e20$7d622820$7f54fea9@zwerg98> (raw)
References: <1030488967.3913.3.camel@joey>

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




view thread (5+ messages)  latest in thread

Message-ID: <004301c24e20$7d622820$7f54fea9@zwerg98>
Permalink:  ../004301c24e20$7d622820$7f54fea9@zwerg98/
Also on:    postgresql.org/message-id/004301c24e20$7d622820$7f54fea9@zwerg98

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: poppcorn@cornelia-boenigk.de, jmontes@zenplex.com
  Subject: Re: Looking for help
  In-Reply-To: <004301c24e20$7d622820$7f54fea9@zwerg98>
  References: <1030488967.3913.3.camel@joey> <004301c24e20$7d622820$7f54fea9@zwerg98>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox