Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

current date and time 1

Status
Not open for further replies.

TheNegotiatorX

Programmer
Mar 5, 2001
1
CA
i need to insert the current date and time into a table. I am working with session variables using coldfusion.....i need to insert values into a table of all the visits made to our website.....

when i created the visit table, i created a field with the data type being date/time.....

how do insert the current date and time into the table ...is there a specific function for this procedure

ex.
insert into visit values ('#id#', '?????');

?????-> being the current date.

help me please....
thanks
 
Why not set up the table with a default value as getDate(), then you never need to worry about inserting the data you only need to insert the ID

Insert into visit values ('#id#')

the date will be automatically created for you,

Hope this helps,

Chris Dukes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top