| От | Scott Marlowe |
|---|---|
| Тема | Re: doesn't recognize "!=-" (not equal to a negative |
| Дата | |
| Msg-id | 1152650900.6540.86.camel@state.g2switchworks.com обсуждение исходный текст |
| Ответ на | doesn't recognize "!=-" (not equal to a negative value) (Paul Tilles <Paul.Tilles@noaa.gov>) |
| Список | pgsql-general |
On Tue, 2006-07-11 at 12:11, Paul Tilles wrote: > Version postgres 7.4.7: > > Following sql > > UPDATE tablename SET value = 0.0 where value!=-9.4; > > results in the error message > > ERROR: operator does not exist: smallint !=- integer > HINT: No operator matches the given name and argument type(s). You may > need to add explicit type casts. > > Seems that postgres has a problem parsing a "not equal negative value". > > Anybody know if this is fixed in later versions? Ummmm. technically, it's not broken. SQL spec says not equal is specified by: <> not != OTOH, if you put a space in there, it'd work. UPDATE tablename SET value = 0.0 where value != -9.4; should work.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера