Re: [SQL] date column

Поиск
Список
Период
Сортировка
От George Moga
Тема Re: [SQL] date column
Дата
Msg-id 36BAD62E.3C923B52@flex.ro
обсуждение исходный текст
Ответ на date column  (Stanimir Stanev <stancho@macropoint.com>)
Список pgsql-sql
Stanimir Stanev wrote:
 

I have "test" table:

+-------+-------+-------+
| Field | Type  | length|
+-------+-------+-------+
| _date | date  |   4   |
|-------+-------+-------+

and i want insert into "test" a row:

test72=> insert into test ('02/02/1999');
ERROR:  parser: parse error at or near "'"

how can i insert date into this table?

10x to all
Stanimir

Use:

INSERT INTO test VALUES ('02/02/1999');
                 ^^^^^^^

-- 
Best,
  George Moga,
  george@flex.ro
  Braila, ROMANIA

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

Предыдущее
От: Stanimir Stanev
Дата:
Сообщение: date column, excuse me
Следующее
От: Patrik Kudo
Дата:
Сообщение: function returning multiple rows?