Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

current date sql

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
 
PREVIOUS NEXT
Tagged: #current #date #sql
ADD COMMENT
Topic
Name
5+7 =