| From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
|---|---|
| To: | Patrick Baker <patrickbakerbr(at)gmail(dot)com> |
| Cc: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: PL/PGSQL + inserts+updates+limit - Postgres 9.3 |
| Date: | 2016-06-03 19:35:05 |
| Message-ID: | CAKFQuwagNwxhZgKSy0+TL-kcwx91g9aLdP077c-3zw213ZXKww@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thu, Jun 2, 2016 at 11:59 PM, Patrick Baker <patrickbakerbr(at)gmail(dot)com>
wrote:
>
>
> 2016-06-03 15:50 GMT+12:00 David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>:
>
>> On Thu, Jun 2, 2016 at 11:37 PM, Patrick Baker <patrickbakerbr(at)gmail(dot)com>
>> wrote:
>>
>>>
>>> How can I make the function to gets the next 3 rows and not use the same
>>> rows that have been used before?
>>>
>> WHERE migrated = 0
>>
>> David J.
>>
>>
>>
>
> lol... that's right David J. Thanks for that! it's working... ;)
>
>
> Last thing.. how to select the number of rows that have been modified?
>
> I mean.. when doing: select function_data_1():
>
> I want to get back the number of rows that have been touched..
>
> do u know how ?
>
> thanks again
>
Add a counter variable, increment it within the loop, and return it.
David J.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Leonardo M. Ramé | 2016-06-03 19:42:57 | Re: Londiste3 - Ubuntu 16.04 - Postgresql 9.3 |
| Previous Message | David G. Johnston | 2016-06-03 19:34:07 | Re: PL/PGSQL + inserts+updates+limit - Postgres 9.3 |