Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eBKHpU698389 for ; Wed, 20 Dec 2000 12:51:30 -0500 (EST) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBK3bf643663 for ; Tue, 19 Dec 2000 22:37:41 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.9.3/8.9.3) id WAA31440 for pgsql-sql@postgresql.org; Tue, 19 Dec 2000 22:32:58 -0500 (EST) (envelope-from news) X-Authentication-Warning: news.tht.net: news set sender to using -f From: "guard" X-Newsgroups: comp.databases.postgresql.sql Subject: plpgsql ? Date: Wed, 20 Dec 2000 11:40:29 +0800 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 25 Message-ID: <91p999$umc$1@news.tht.net> X-Trace: news.tht.net 977283178 31436 210.244.70.204 (20 Dec 2000 03:32:58 GMT) X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 To: pgsql-sql@postgresql.org X-Archive-Number: 200012/235 X-Sequence-Number: 572 Hi all, i have a question 'plpgsql' my code CREATE FUNCTION autono (text,text) RETURNS text AS ' DECLARE a1 ALIAS FOR $1; a2 ALIAS FOR $1; ret_val text; BEGIN select tna into ret_val from a1 where pamt_no=a2; RETURN ret_val; END;' LANGUAGE 'plpgsql' error run " select tna into ret_val from a1 where pamt_no=a2; " help me ,thanks