Re: Generic timestamp function for updates where field
Вложения
В списке pgsql-general по дате отправления:
| От | Martijn van Oosterhout |
|---|---|
| Тема | Re: Generic timestamp function for updates where field |
| Дата | |
| Msg-id | 20061231165455.GC6777@svana.org обсуждение исходный текст |
| Ответ на | Re: Generic timestamp function for updates where field (novnov <novnovice@gmail.com>) |
| Ответы |
Re: Generic timestamp function for updates where field
|
| Список | pgsql-general |
On Sun, Dec 31, 2006 at 08:48:07AM -0800, novnov wrote: > Why would not be possible in plpgsql? It has loop etc, the only part I'm not > sure it can do it use the variable as field name. The "dynamic" in dynamic language usually refers to dynamic typing. pl/pgsql is a strictly typed language which means one can look at the code and determine what type each variable will be. Languages like perl and python are dynamic because what type a variable is does not matter until runtime and the type can change every time you run it. The problem with using a variable as a field name is that you can no longer tell what type the result will be. It could be any type supported by postgres. pl/pgsql can't handle that, perl and python can... Hope this helps, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера