学习SQL
CREATE TABLE Orders
(
Id_O int NOT NULL,
OrderNo int NOT NULL,
Id_P int,
OrderDate date DEFAULT SYSDATE
);
SQL> insert into Orders values (12,33,44,sysdate); 已创建 1 行。
SQL> commit;
提交完成。
SQL> select * from Orders;
ID_O ORDERNO ID_P ORDERDATE
---------- ---------- ---------- --------------
12 33 44
12 33 44 31-10月-11
用ORACLE 插入系统 时间
在sql sever 中 用 getDate()
oracle 用 sysdate