create table lms_purchases_with_timestamp(
product_id integer references lms_product(product_id),
customer_id integer references lms_customers(id),
made_on timestamp(4));
uj5u.com熱心網友回復:
什么意思?SQL> select sysdate from dual;
SYSDATE
-------------------
2016-10-25 20:06:30
uj5u.com熱心網友回復:
create table id(id int, t timestamp default systimestamp)
uj5u.com熱心網友回復:
怎么向lms_purchases_with_timestamp中insert資料進表uj5u.com熱心網友回復:
insert into lms_purchases_with_timestampselect id1,id2,sysdate from dual;
--sysdate時間精度應該可以滿足你的系統要求了
uj5u.com熱心網友回復:
既然要時間戳,給欄位默認值就行了,資料插入的時候也不用管他create table id(id int, t timestamp default systimestamp)
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/115071.html
標籤:基礎和管理
