Week number

Поиск
Список
Период
Сортировка
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







В списке pgsql-hackers по дате отправления: