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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #date #sql
ADD COMMENT
Topic
Name
7+3 =