Function to retrieve the Id column

Поиск
Список
Период
Сортировка
От Ezequias Rodrigues da Rocha
Тема Function to retrieve the Id column
Дата
Msg-id 55c095e90608241007t3d004a14w9720cd66a60772e@mail.gmail.com
обсуждение исходный текст
Ответы Re: Function to retrieve the Id column  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-sql
Hi list,
 
I have Id field that is used in all my database but my more often used parameter is a column called "number" that I have in more than 5000 magnetic cards, my question is.
 
How could I make a function to retrieve this Id just passing the number as parameter, just like:
 
getCardId(number: varchar)
 
 
Best regards ...
Ezequias

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: double precision vs. numeric
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: double precision vs. numeric