Re: very odd behavior

Поиск
Список
Период
Сортировка
От Mitch Vincent
Тема Re: very odd behavior
Дата
Msg-id 007e01c0d97d$ff377da0$1251000a@windows
обсуждение исходный текст
Ответ на very odd behavior  (newsreader@mediaone.net)
Список pgsql-general
desc is a reserved keyword (used in ORDER BY to indicate descending order)..

You can use keywords as field names though you have to put the in quotes (as
you found out!).

-Mitch

----- Original Message -----
From: <newsreader@mediaone.net>
To: <pgsql-general@postgresql.org>
Sent: Thursday, May 10, 2001 2:08 PM
Subject: very odd behavior


> I have 7.1
>
> Can someone take a look the following
> and tell me why I'm getting errors?
> I'm completely baffled!
> ----------------------------
>
> what=> create table bla(desc text,def text,data text);
> ERROR:  parser: parse error at or near "desc"
> what=> create table bla("desc" text,def text,data text);
> CREATE
> what=>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>


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

Предыдущее
От: Patrick Welche
Дата:
Сообщение: Re: very odd behavior
Следующее
От: "mazzo"
Дата:
Сообщение: Using , instead of . for thousands..