checking and capturing null values and inserting into a tabl

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
krisna
Participant
Posts: 77
Joined: Tue Apr 08, 2008 11:33 pm

checking and capturing null values and inserting into a tabl

Post by krisna »

Hi All,

If date column is having null value how to check and then insert (null value with date column) in to a oracle table. Similarly with varchar values also

Thanks in advance
neena
Participant
Posts: 90
Joined: Mon Mar 31, 2003 4:32 pm

Post by neena »

Try to check with IsNull() function and put '', same with the varchar too.
I may be wrong because I never worked on Oracle.
nsm
Premium Member
Premium Member
Posts: 139
Joined: Mon Feb 09, 2004 8:58 am

Post by nsm »

check with isnull() and then depends on ur logic either insert 'Nothing' or a default date.

For Varchar type columns in addition to checking isnull() also trim the column and do your logic of assigning a value.
Post Reply