謝晒的PHP網頁設計
聯絡E-mail:
sean0704@gmail.com
站內搜尋
Wednesday, May 15, 2013
[PHP] 如何在phpmyadmin中設定mysql的時間自動寫入
新增一個欄位 例如:create_time
型態 選擇
TIMESTAMP
預設值 選擇 CURRENT_TIMESTAMP
備註:型態不能用 DATETIME 會發生錯誤
1 comment:
Jesse Ho
May 16, 2013 at 9:41 PM
CURRENT_TIMESTAMP = now()
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
CURRENT_TIMESTAMP = now()
ReplyDelete