pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chairudin Sentosa <chairudin@prima.net.id>
To: pgsql-sql@postgreSQL.org
Subject: TO_CHAR or TO_DATE
Date: Wed, 31 Mar 1999 04:34:31 -0700
Message-ID: <37020847.8DBA2C2E@prima.net.id> (raw)
References: <Pine.LNX.4.05.9903121402040.27807-100000@michel.enter.it>

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




view thread (2+ messages)  latest in thread

Message-ID: <37020847.8DBA2C2E@prima.net.id>
Permalink:  ../37020847.8DBA2C2E@prima.net.id/
Also on:    postgresql.org/message-id/37020847.8DBA2C2E@prima.net.id

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: chairudin@prima.net.id
  Subject: Re: TO_CHAR or TO_DATE
  In-Reply-To: <37020847.8DBA2C2E@prima.net.id>
  References: <Pine.LNX.4.05.9903121402040.27807-100000@michel.enter.it> <37020847.8DBA2C2E@prima.net.id>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox