powered by simpleCommunicator - 2.0.52     © 2025 Programmizd 02
Форумы / IBM DB2, WebSphere, IMS, U2 [игнор отключен] [закрыт для гостей] / what's the f$%^??? is it NULL oor is not?
2 сообщений из 2, страница 1 из 1
what's the f$%^??? is it NULL oor is not?
    #32564514
ggv
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
ggv
Гость
Found a strange thing with NULL..
There is a table with not null field.
select count(*) from table where field is null
returns 0 rows.
select field from table where PK=XXX
returns:
(null)

the same from embedded sql, indicator variable == 0, but the field contains "(null)", and has a length 6.....

DB21085I Instance "db2inst1" uses "32" bits and DB2 code release "SQL08014"
with level identifier "02050106".
Informational tokens are "DB2 v8.1.0.40", "n040122", "MI00075", and FixPak "4".
Product is installed at "/opt/IBM/db2/V8.1".

Linux.
...
Рейтинг: 0 / 0
what's the f$%^??? is it NULL oor is not?
    #32577420
ggv
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
ggv
Гость
select count(*) from table where field='(null)' returns a lot....
Seems it's my buggy web developer.... I think it is he has inserted, or his fu$%ing application. There are a lot of rows with '(null)' inserted as a string on the field....
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / IBM DB2, WebSphere, IMS, U2 [игнор отключен] [закрыт для гостей] / what's the f$%^??? is it NULL oor is not?
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]