Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4DF13475EEE for ; Fri, 20 Sep 2002 04:56:06 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id DA8C3475E83 for ; Fri, 20 Sep 2002 04:56:05 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id A5EEB382587; Fri, 20 Sep 2002 04:55:02 -0400 (EDT) From: "Seb" X-Newsgroups: comp.databases.postgresql.sql Subject: Date/Time types Date: Fri, 20 Sep 2002 10:54:55 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 26 Message-ID: X-Complaints-To: news@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: pgsql-sql@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/355 X-Sequence-Number: 9632 Hello, I'm french, so excuse me if my english is not correct. I'd like to create a table with a Timestamp row (named date for example) and width a resolution as smaller as possible (1 microsecond if possible). What is exactly the correct query for that question ? The query I've written is : CREATE TABLE "table" ( "id" int4 NOT NULL, "date" timestamp [13] NOT NULL ) If this correct, I've a second question : how can I insert a value ??? I've tried many ways but any works ! I'm lost.... I've tried to cast, to use CURRENT_TIMESTAMP with a precision, but nothing works... Thanks for your help Seb