X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6F3483A5C2C for ; Thu, 27 Jan 2005 02:13:46 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87811-03 for ; Thu, 27 Jan 2005 02:13:35 +0000 (GMT) Received: from hotmail.com (bay101-f3.bay101.hotmail.com [64.4.56.13]) by svr1.postgresql.org (Postfix) with ESMTP id 990993A5B7A for ; Thu, 27 Jan 2005 02:13:37 +0000 (GMT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 26 Jan 2005 18:13:01 -0800 Message-ID: Received: from 134.29.51.188 by by101fd.bay101.hotmail.msn.com with HTTP; Thu, 27 Jan 2005 02:12:38 GMT X-Originating-IP: [134.29.51.188] X-Originating-Email: [cstotes@hotmail.com] X-Sender: cstotes@hotmail.com Reply-To: cstotesbery@acm.org In-Reply-To: From: "Clint Stotesbery" To: kevin07@parkerglobal.com, pgsql-sql@postgresql.org Subject: Re: Moving from Transact SQL to PL/pgSQL Date: Thu, 27 Jan 2005 02:12:38 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 27 Jan 2005 02:13:01.0753 (UTC) FILETIME=[BA5EDA90:01C50415] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.032 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_POST, MSGID_FROM_MTA_HEADER X-Spam-Level: * X-Archive-Number: 200501/278 X-Sequence-Number: 20066 For Oracle info, check out one of my recent posts: http://archives.postgresql.org/pgsql-sql/2005-01/msg00231.php For TSQL, well, I was involved in project where we converted an Oracle db (with procs, functions, triggers, etc) to PostgreSQL and MS Sql Server. plpgsql and plsql are close enough where it isn't too hard to convert between the two. TSQL and plpgsql are quite different. -Clint ----Original Message Follows---- From: "Kevin Duffy" To: Subject: [SQL] Moving from Transact SQL to PL/pgSQL Date: Mon, 24 Jan 2005 12:14:22 -0500 Hello: I am starting a project using Postgres. The requirements are very similar to work I have done in the past using M$-SQL. Therefore, there are many Transact SQL stored procedures I need to port over to PL/pgSQL. Where would I find documentation on PL/pgSQL, with examples? How close to Oracle PL-SQL is Postgres? Would a Oracle PL-SQL book cover the basics? Remember be kind to the newbee. Kevin Duffy