I am new to Derby and I noticed that I face similar problems as when using the DB2 RDBMS as far as null values are concerned. The Derby documentation states, th
Maybe this solution helps you:
insert into T_AUTHOR (
ID,
FIRST_NAME,
LAST_NAME,
DATE_OF_BIRTH,
YEAR_OF_BIRTH,
ADDRESS
) select
1000,
'Lukas',
'Eder',
'1981-07-10',
(select YEAR_OF_BIRTH from T_AUTHOR where true = false),
(select ADDRESS from T_AUTHOR where true = false)
from SYSIBM.SYSDUMMY1
This method does not require explicit cast of null, because inner select will return null with required type.