| От | Thomas Hallgren |
|---|---|
| Тема | Re: null value of type java.sql.Time |
| Дата | |
| Msg-id | 41A270F4.7010103@mailblocks.com обсуждение исходный текст |
| Ответ на | null value of type java.sql.Time (phil campaigne <pcampaigne@charter.net>) |
| Список | pgsql-general |
phil campaigne wrote: > Occasionally I want to store a null value for my java.sql.Time--> Time > column in Postgresql. > update event set game_clock=null where event_id=1; > > I can retreive the record with the null value (type Time) if I select on > the primary key, > select game_clock from event where event_id = 1; > > but when I try to select on the null column value, I get zero records. > select * from event where game_clock=null; > Try select * from event where game_clock is null; A null value cannot be used in a comparison since it's undefined. You have to explicitly query for something that has no value, hence the different syntax. Regards, Thomas Hallgren
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера