Re: SELECTing from a function where i don't want the results

Поиск
Список
Период
Сортировка
От Holger Jakobs
Тема Re: SELECTing from a function where i don't want the results
Дата
Msg-id 5cbe6f6d-5db5-9020-a58b-48ecf91efd61@jakobs.com
обсуждение исходный текст
Ответ на SELECTing from a function where i don't want the results  (Wells Oliver <wells.oliver@gmail.com>)
Ответы Re: SELECTing from a function where i don't want the results  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-admin

You could combine the result with a NULL value, as any operations with NULL result in NULL.

SELECT mydelete(r) + NULL FROM sometable;

Am 08.07.20 um 00:34 schrieb Wells Oliver:
Vanilla SQL script calls a plpgsql function to delete some number of rows from three tables:

SELECT mydelete(r) FROM sometable;

Where sometable contains maybe 100+ records. This causes the results from the function (integer of number of rows removed) to be displayed in the output, like you'd kinda expect with a SELECT call, except I don't want to see it all, I just want the function quietly executed and rows removed.

Can I accomplish this?

--
-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

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

Предыдущее
От: Wells Oliver
Дата:
Сообщение: SELECTing from a function where i don't want the results
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: SELECTing from a function where i don't want the results