oracle - Can we store anything other than a valid date or null value in a date field? -


i'm working on oracle , perl. have 3 fields in table (a, b, c), , form, every row in table, string a_b_c using "join". c refers date. can take null values. in case , "join" return warning "use of uninitialized values in join". know have select nvl(c,something) a_b_something when c null. can suggest me "something" can be, if want distinguish between these rows , other rows.

in short, can store other valid date or null value in date field?

i know have select nvl(c,something) a_b_something when c null

selecting isn't storing value in column, , oracle passes datetimes clients strings, it's entirely possible can use nvl(col, '') without confusing dbi @ all.

if doesn't work out, can build whole thing in sql: select

a || '_' || b || '_' || (case when c null '' else to_char(c) end) 

as 1 of columns.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -