question about functions

Поиск
Список
Период
Сортировка
От Linuxero
Тема question about functions
Дата
Msg-id 00d301c0ff70$b44b7d00$3f40410a@agarin
обсуждение исходный текст
Ответ на RE: Hello  ("Linuxero" <linuxero2@yahoo.com>)
Список pgsql-docs
Hi:

I'm interested in postgres because I want to use transactions
and store procedures (or functions).
I have created this table:
Table1
    c1 int4
    c2 varchar(5)

And this function

Name: Test
Return: setof int4
Language: sql

"select * from Table1";

But, this is not working because this funcion only return
a set of int4 results... I should replace this to
"select c1 from Table1".

My question is:
How can i return a select with two o more colums?
Like MS Sql server store procedures does.
Is it possible?

Thanks in advance.
Regards
---
EL Linuxero




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Предыдущее
От: "Linuxero"
Дата:
Сообщение: RE: Hello
Следующее
От: Weiping He
Дата:
Сообщение: Re: RE: Hello