how to insert date and time in oracle?

前端 未结 5 933
清歌不尽
清歌不尽 2020-12-08 00:23

Im having trouble inserting a row in my table. Here is the insert statement and table creation. This is part of a uni assignment hence the simplicity, what am i doing wrong?

5条回答
  •  萌比男神i
    2020-12-08 01:13

    create table Customer(
           CustId int primary key,
           CustName varchar(20),
           DOB date);
    
    insert into Customer values(1,'kingle', TO_DATE('1994-12-16 12:00:00', 'yyyy-MM-dd hh:mi:ss'));
    

提交回复
热议问题