Re: Insert and limit

From: "Matteo Centenaro" <gente_che_mixa(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Insert and limit
Date: 2001-06-15 15:10:34
Message-ID: F203njawqJj5NPW42yA0000fc2a@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<html><DIV>
<P>I'm running 7.1.1</P>
<P>I&nbsp;create the Pl/Pgsql function using Pgaccess the code is like this:<BR>Insert into tab1 Select * from tab2 where id = xxxx&nbsp; limit var_name;</P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: Tom Lane <TGL(at)SSS(dot)PGH(dot)PA(dot)US>
<DIV></DIV>&gt;To: "Richard Huxton" <DEV(at)ARCHONET(dot)COM>
<DIV></DIV>&gt;CC: "Matteo Centenaro" <GENTE_CHE_MIXA(at)HOTMAIL(dot)COM>, pgsql-general(at)postgresql(dot)org
<DIV></DIV>&gt;Subject: Re: [GENERAL] Insert and limit
<DIV></DIV>&gt;Date: Fri, 15 Jun 2001 10:42:11 -0400
<DIV></DIV>&gt;
<DIV></DIV>&gt;"Richard Huxton" <DEV(at)ARCHONET(dot)COM>writes:
<DIV></DIV>&gt; &gt; [follow-up message said Matteo was interested in plpgsql]
<DIV></DIV>&gt; &gt; Still seems OK.
<DIV></DIV>&gt;
<DIV></DIV>&gt;I think a more relevant question is "what version are you running?"
<DIV></DIV>&gt;
<DIV></DIV>&gt;IIRC, LIMIT only works in a top-level SELECT before 7.1.
<DIV></DIV>&gt;
<DIV></DIV>&gt; regards, tom lane
<DIV></DIV>&gt;
<DIV></DIV>&gt;---------------------------(end of broadcast)---------------------------
<DIV></DIV>&gt;TIP 3: if posting/reading through Usenet, please send an appropriate
<DIV></DIV>&gt;subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
<DIV></DIV>&gt;message can get through to the mailing list cleanly
<DIV></DIV><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></html>

Attachment Content-Type Size
unknown_filename text/html 1.4 KB

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gunnar Rønning 2001-06-15 15:23:10 The bytea datatype and JDBC
Previous Message Dariusz Pietrzak 2001-06-15 14:59:23 CLUSTER.