Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id AAAB563402B for ; Mon, 17 May 2010 19:51:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 51514-03 for ; Mon, 17 May 2010 22:51:24 +0000 (UTC) X-Greylist: delayed 00:32:01.788586 by SQLgrey-1.7.6 Received: from mx02.burntmail.com (mx02.burntmail.com [70.87.63.122]) by mail.postgresql.org (Postfix) with ESMTP id 31CBD6329DE for ; Mon, 17 May 2010 19:51:25 -0300 (ADT) Received: from [173.79.57.179] (helo=[192.168.1.60]) by mx02.burntmail.com with esmtpa (Exim 4.63) (envelope-from ) id 1OE8eg-0007cR-1S for pgsql-general@postgresql.org; Mon, 17 May 2010 17:19:22 -0500 Message-ID: <4BF1C0EA.3080008@burntmail.com> Date: Mon, 17 May 2010 18:19:22 -0400 From: Guy Rouillier User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: which function should i invoke to create a table and insert tuples? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/672 X-Sequence-Number: 163041 On 5/17/2010 10:31 AM, sunpeng wrote: > hi,when i do experiment on postgresql 8.4,i need to create a table and > insert some tuples,which function should i invoke? > for example,i want to create a table with "create table test (uid > int,catcode int)" and insert tuples with "insert into test values(1,1)". > thanks millions! What do you mean by function? Are you trying to do this from PgAdmin, from a stored proc or from some flavor of source code? If either of the latter two, which language? -- Guy Rouillier