On 6/8/2017 6:36 PM, marcinha rocha
wrote:
SELECT does not return data in any determinate order unless you use an ORDER BY.... so LIMIT 2000 would return some 2000 elements, not neccessarily the 'first' 2000 elements unless you somehow order them by however you feel 'first' is defined.
I'm not 100% sure you can do UPDATE .... RETURNING COUNT(...),
worse case the UPDATE RETURNING would be a subquery of a SELECT
COUNT()...
-- john r pierce, recycling bits in santa cruz |