Updated rowcount

Поиск
Список
Период
Сортировка
От Jason Alexander
Тема Updated rowcount
Дата
Msg-id 9hvh2m$3cn$1@news.tht.net
обсуждение исходный текст
Список pgsql-sql
Hello all,


I'm attempting to find the property (if it exists) where I can check to see
how many rows were affected during an UPDATE. An equivalent would be
@@ROWCOUNT in SQL Server, etc...

As an example:

UPDATE tablefoo
SET foo1 = 'spork'
WHERE foo2 = 'goomba'

IF @@ROWCOUNT = 0 INSERT INTO tablefoo . . . .

And, so on...

TIA,
-Jason




В списке pgsql-sql по дате отправления:

Предыдущее
От: "Raghavendra"
Дата:
Сообщение: Problem in running the postmaster
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Help! Failure of pgdump -a