| От | Rodrigo Gonzalez |
|---|---|
| Тема | Re: Upgrade 8.3 |
| Дата | |
| Msg-id | 4808E8B9.5070506@gmail.com обсуждение исходный текст |
| Ответ на | Upgrade 8.3 ("E.J. Moloney" <emoloney@moloneyodeaassociates.co.uk>) |
| Список | pgsql-general |
E.J. Moloney escribió: > I am running the following query > > update tempportfwdconnectiona set srcid=interface.objectid from > interface where tempportfwdconnectiona.hostid=interface.host and > tempportfwdconnectiona.spantreeport=interface.stpport > > For application reasons the spantreeport in one table is a text field > and an integer in the other. > > I am getting a cast error when I run this query which did work 8.2x, I > can't make both fields the same type is there any work around any body > can suggest. > > I tried creating a cast but the interface function text_int no longer > exists. > > > Regards > E.J. Moloney > > Cast one to the other type Considering stpport as integer you could update tempportfwdconnectiona set srcid=interface.objectid from interface where tempportfwdconnectiona.hostid=interface.host and tempportfwdconnectiona.spantreeport=interface.stpport::text
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера