pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Morton <fmorton@base2inc.com>
To: pgsql-sql@postgreSQL.org
Subject: Newbie questions
Date: Sun, 13 Dec 1998 21:39:41 -0500
Message-ID: <010001be270b$0070f980$8355e5ce@tesla.base2inc.com> (raw)

These are probably simple questions, but I can't find the answer.
A source for finding answers to this type of questions would
be appreciated.

Question #1

If a select might match MANY rows, how can I limit it to say 50?

I thought you could do:

select * from table limit 50;

Question #2

In doing a select, is there a way to ignore if the case of the key?

For example, if I have a table called animals with an id column and
it might contain "dog" or "DOG" or "Dog" and I want to match all
of them, how do I do it, with or without the "like" operator?

I'd like to say:

select * from animals where id='dogs' ignore case;

How do I do this?

Thanks you for your patience.






view thread (6+ messages)  latest in thread

Message-ID: <010001be270b$0070f980$8355e5ce@tesla.base2inc.com>
Permalink:  ../010001be270b$0070f980$8355e5ce@tesla.base2inc.com/
Also on:    postgresql.org/message-id/010001be270b$0070f980$8355e5ce@tesla.base2inc.com

 · 

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-sql@postgresql.org
  Cc: fmorton@base2inc.com
  Subject: Re: Newbie questions
  In-Reply-To: <010001be270b$0070f980$8355e5ce@tesla.base2inc.com>
  References: <010001be270b$0070f980$8355e5ce@tesla.base2inc.com>

* 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