TO_CHAR or TO_DATE

Поиск
Список
Период
Сортировка
От Chairudin Sentosa
Тема TO_CHAR or TO_DATE
Дата
Msg-id 37020847.8DBA2C2E@prima.net.id
обсуждение исходный текст
Ответ на where can I get...  (ZioBudda <michel@michel.enter.it>)
Список pgsql-sql
Hi,

Is the any similar function to 'to_char' and to_date' from Oracle in
Postgresql?

I have a problem insert only month-year.

create table blah
(id varchar(10),month date,week int4,amount float8
);

insert into blah
(id, month, week, amount)
values
('1','MAR-1999',1,,3000);

I got error message : Bad date external representation MAR-1999

How to do it the right way to insert only month and year?

Regards,
Chai



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

Предыдущее
От: Clark Evans
Дата:
Сообщение: Selecting and deleting duplicate rows
Следующее
От: Chairudin Sentosa
Дата:
Сообщение: Re: [SQL] Odd "problem", not sure if there is a solution ....