Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7G3WvP97049 for ; Wed, 15 Aug 2001 23:32:57 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f7G3Klw57099 for pgsql-sql@postgresql.org; Wed, 15 Aug 2001 23:20:47 -0400 (EDT) (envelope-from news) From: "Bill" X-Newsgroups: comp.databases.postgresql.sql Subject: Thanks Date: Thu, 16 Aug 2001 11:14:30 +0800 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 23 Message-ID: <9lfe6d$1no5$1@news.tht.net> References: <9lb25o$psq$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-sql@postgresql.org X-Archive-Number: 200108/213 X-Sequence-Number: 4445 Thanks all for the help :) I got to do all this, because there a existing system running on SQL Server/SQL Anyway which using all these syntax though out the coding, and I got to make it support postgreSQL And here is a question relate to the DataDiff function in SQL Server, is it possible to write a function that pass the parameter like the DataDiff function, I mean: DataDiff( Year, date1, date2) but not DataDiff( 'Year', date1, date2) Is it possible to doing this? Define a enum data type? Thanks Bill