Received: from hub.org.org (localhost [127.0.0.1]) by hub.org (8.10.1/8.11.0) with SMTP id e9PMg3688702 for ; Wed, 25 Oct 2000 18:42:11 -0400 (EDT) (envelope-from pgsql-sql-owner@hub.org) Received: from mjtsa.com (mjtgtw2.mjt.ch [194.209.241.21]) by hub.org (8.10.1/8.11.0) with ESMTP id e9P9psO78339 for ; Wed, 25 Oct 2000 05:51:55 -0400 (EDT) (envelope-from bc@mjtsa.com) Received: (from bc@localhost) by mjtsa.com (8.9.2/dc) id LAA22831 for pgsql-sql@postgresql.org; Wed, 25 Oct 2000 11:48:38 +0100 (WETDST) Date: Wed, 25 Oct 2000 11:48:38 +0100 (WETDST) From: Blaise Carrupt Message-Id: <200010251048.LAA22831@mjtsa.com> To: pgsql-sql@postgresql.org Subject: Get a time from a char column Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-MD5: EeukgE6JbTQ/41ya90lM2A== X-Archive-Number: 200010/222 X-Sequence-Number: 1886 Hi ! What I would like is this : insert into tt1 (select a from tt2) where tt1.x field is a time, and tt2.a field is a char containing '10:00'. Doing that, Postgres tells me something like 'x is of type time and a of type bpchar'. That's true, but I can't find the way to cast my char field in a time. And in the other hand, this works : insert into tt1 values('10:00') what seems to be the same... Does someone have an idea ?