CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP in mssql?
问题 Here i am trying to use CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP in mssql. Here getdate() is available.How can i rewrite with current-date with updated date automatically in sql. Code I am trying to update: CREATE TABLE XXXXX ( fid int(11) NOT NULL AUTO_INCREMENT, Name varchar(100) NOT NULL, status varchar(4) DEFAULT 'yes', fdate timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (fid) ) 回答1: Create database CREATE TABLE XXXXX ( fid int NOT NULL