How to get current date & time in MySQL?

后端 未结 10 1208
情深已故
情深已故 2020-11-29 17:18

Is there a value or command like DATETIME that I can use in a manual query to insert the current date and time?

INSERT INTO servers (
  server_name, online_         


        
10条回答
  •  盖世英雄少女心
    2020-11-29 17:57

    İf you make change default value to CURRENT_TIMESTAMP it is more effiency,

    ALTER TABLE servers MODIFY COLUMN network_shares datetime NOT NULL DEFAULT CURRENT_TIMESTAMP;
    

提交回复
热议问题