ITeye博客

学习SQL 

smartan · 2011-10-31 22:27 · 数据库 · 数据库 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。