Support for Limit in Update, Insert...

From: "Cristian Prieto" <cristian(at)clickdiario(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Support for Limit in Update, Insert...
Date: 2005-09-08 23:35:10
Message-ID: 03e501c5b4cd$f546cb40$6500a8c0@gt.ClickDiario.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Would be any future support for limit in update/insert queries? so you could do something like

update table1 set col1=value1 limit 1000;

would update just the first 1000 rows in the table. I've been playing a little with the SPI and I get the SPI already has the support for limit the number of changes or elements in a query (the SPI_execute function).

Any comments?

Thanks a lot

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matthew Peter 2005-09-08 23:52:07 Re: back references using regex
Previous Message Michael Fuhr 2005-09-08 22:54:59 Re: back references using regex