Week number

From: "Wodzu" <wodzu(at)wodzus(dot)prv(dot)pl>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Week number
Date: 2001-11-28 12:09:48
Message-ID: 9u2k2v$1nff$1@news2.ipartners.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

I'm novice in PostgreSQL.
I want to obtain current week number.
Under PHP I try:

$query = "SELECT EXTRACT(WEEK FROM NOW)";
$result= pg_exec($dbconn,$query);

where: $dbconn - successful conection id
But this give me an error message.
Can somebody help me?
Sorry for my english.

Thanks in advice.

Wodzu

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Larry Rosenman 2001-11-28 13:17:23 Re: Call for platform testing
Previous Message mlw 2001-11-28 11:58:25 Re: Possible bug in new VACUUM code