Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the syntax for setting columns of type Oracle DATE ?

columns Oracle setting syntax type
0
Posted

What is the syntax for setting columns of type Oracle DATE ?

0

Lets assume that in an Oracle database with open file handle db there is a column sched in table foo that has been created as follows : direct db, “create table foo (event char(20) primary key, sched date)” To variously populate the rows by means of the compile-time DIRECT statement : direct db, “insert into foo values (vacation_start, null)” direct db, “insert into foo values (birthday_ time, to_date(‘19970811211405′,’YYYYMMDDHH24MISS’) )” direct db, “insert into foo values (today, sysdate)” Alternatively, to populate the rows by means of the run-time COPY after using the Warehouse SETVAR statement to assign a value to the sched column : setvar sched = $null setvar sched = str2date(“19970811 211405″,”YYYYMMDD HH24MISS”) setvar sched = $today

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123