Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

insert current date in mysql

INSERT INTO my_table (last_updated) VALUES(NOW());
INSERT INTO my_table (last_updated) VALUES(sysdate);	-- Oracle
INSERT INTO my_table (last_updated) VALUES(getdate());	-- SQL Server
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #current #date #mysql
ADD COMMENT
Topic
Name
9+5 =