Thread: where can I get...
...the data of a table ? I want to create a program via GTK that can perform ALL action to a postgresql DB. But I don't know where I can get the information to retry the name of DB, tables, items and so on? any RTFM xxxx ? ciaoz Ho sentito urla di sudore... che schifo... -- Michel <ZioBudda> Morelli michel@michel.enter.it http://ziobudda.enter.it Problemi con Linux ? mailto:linux@saturn.media.dsi.unimi.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
Chairudin Sentosa wrote: > How to do it the right way to insert only month and year? You don't, it is necessary to have a day as well. Use the first of the month, and ignore the day in your program. Thus, insert into table values ( '1-MAR-1999' ); Alternatively, you could create your own type and work out all the semantics necessary to only manage months. This sounds interesting actually, only I would do 'week' rather than month. Clark