Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用这样的time列创建表:
time
time TIMESTAMP NOT NULL DEFAULT CURRENT TIMESTAMP
但我需要添加下周日期作为默认值。我试图这样做:
time TIMESTAMP NOT NULL DEFAULT DATE(CURRENT TIMESTAMP)+7
但它不起作用。我应该怎么办?