Re: [SQL] Check a value in array

2004-05-05 Thread Contact AR-SD.NET
select * from table where date in ('02/02/2004', '02/03/2004'  )

i'm using pgsql 7.3.2 and it works fine.

Andy.

- Original Message -
From: "Marco Lazzeri" <[EMAIL PROTECTED]>
To: "Rod Taylor" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, April 30, 2004 11:18 AM
Subject: Re: [SQL] Check a value in array


> Il gio, 2004-04-29 alle 19:56, Rod Taylor ha scritto:
> > On Thu, 2004-04-29 at 13:37, Marco Lazzeri wrote:
> > > Hi all.
> > >
> > > I have to check if a value is in an array.
> > >
> > > I've got a date array in a table and I would like to perform queries
> > > like:
> > >
> > > SELECT * FROM table WHERE date IN dates_array;
> >
> > If you're using 7.4 or later, try:
> >
> > SELECT * FROM table WHERE date = ANY(dates_array);
> >
> > This will work without the contrib package.
>
> Thank you Rod, I forgot to specify I'm using PostgreSQL 7.3.5.
>
>
> ---(end of broadcast)---
> TIP 9: the planner will ignore your desire to choose an index scan if your
>   joining column's datatypes do not match
>



---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings


Re: [SQL] upper/lower for german characters

2004-11-13 Thread Contact AR-SD.NET
Hi Markus,

I tried different types of encoding, LATIN1 to LATIN 9, still the same
behavior. I read a few forums, but there I couldn't find a concrete answer
for this.

So... still searching.

Best regards,
Andy.

- Original Message -
From: "Markus Schaber" <[EMAIL PROTECTED]>
To: "Andrei Bintintan" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, November 09, 2004 7:59 PM
Subject: Re: [SQL] upper/lower for german characters


Hi, Andrei,

On Tue, 9 Nov 2004 16:58:27 +0200
"Andrei Bintintan" <[EMAIL PROTECTED]> wrote:

> Hi to all, I have the problem that:
> select lower('MöBÜEL') or select upper('MöBÜEL') are not working well.
>
> I read on some forums that there is some locale setting that needs to
> be done here, but could not fix this.
>
> I am using the ASCII encoding.

By definition, ASCII does not contain any umlauts.

So I would advise that, first, you switch to an umlaut capable encoding
(e. G. Latin1, Latin9 or UTF-8).

HTH,
Markus

--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:[EMAIL PROTECTED] | www.logi-track.com

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
  subscribe-nomail command to [EMAIL PROTECTED] so that your
  message can get through to the mailing list cleanly



---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings