| От | Kaarel |
|---|---|
| Тема | Question about anyelement datatype |
| Дата | |
| Msg-id | 492C8922.3060006@klaabu.com обсуждение исходный текст |
| Ответы |
Re: Question about anyelement datatype
|
| Список | pgsql-general |
Hi
I need to use the following statement in a stored procedure:
EXECUTE 'SELECT * FROM ' || v_table_name INTO v_result;
where v_table_name and v_result are the arguments of the function.
v_table_name is of character varying type and v_result is anyelement.
But as I discovered, it's not allowed to write into function arguments.
I also tried to declare v_result like this:
v_result v_table_name%ROWTYPE
but that's not allowed either.
Then I tried to use this:
v_result v_data%TYPE
where v_data is an argument of the same function with anyelement
datatype, but no luck.
Is there a way to declare such a pseudo-type variable inside the stored
procedure?
Thank you in advance,
Kaarel
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера