Received: from ponyexpress5.csc.com (ponyexpress5.csc.com [208.219.64.204]) by hub.org (8.9.2/8.9.1) with ESMTP id JAA92417 for ; Wed, 31 Mar 1999 09:09:05 -0500 (EST) (envelope-from miannaco@csc.com) From: miannaco@csc.com Received: from va-fch34.vtc.csc.com ([20.1.6.97] helo=csc.com) by ponyexpress5.csc.com with smtp (Exim 2.05 #1) id 10SLfV-0002sg-00 for pgsql-sql@postgresql.org; Wed, 31 Mar 1999 09:08:33 -0500 Received: by csc.com(Lotus SMTP MTA SMTP MTA v1.1.04 (495.1 10-24-1997)) id 85256745.004DAC38 ; Wed, 31 Mar 1999 09:08:23 -0500 X-Lotus-FromDomain: CSC To: pgsql-sql@postgresql.org Message-ID: Date: Wed, 31 Mar 1999 15:03:19 +0100 Subject: merging date and time Mime-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id JAA92420 Hi, I'm experiencing some problems to create a view in which I put together a date and a time in the same field... I have a table which contain a date field (with a date inside) and a varchar field with time inside.. This is the content of those two field in one record:    |22-03-1999|14:45:27 I just wanted to create a view in which those two field are merged in a datetime filed.. I tried using different approach but I'm always getting an error message or while creating the view or when selectin from the created view.. examples:    create view glob_time as select datetime(euigw.day||euigw.time) as tempo from euigw; gives me the following error message;    ERROR:  There is more than one possible operator '||' for types 'date' and 'varc    har'           You will have to retype this query using an explicit cast create view glob_time as select datetime(text(euigw.day)||euigw.time) as tempo from euigw; works file, but then if I do select * from glob_time; I get: ERROR:  Bad datetime external representation 'Mon 22 Mar 00:00:00 1999 MET14:45: 27' does anyone have an idea about how to solve this? thanks, Marco