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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date option

Status
Not open for further replies.

canrizwan

Programmer
Apr 8, 2007
1
US
hi, I am new SQL learner and I have a question like while create a table I want to include date column in that table so, how can I do it please help me out.

thank you
 
I assume you are doing this through Enterprise Manager?

If so, you simply add another column, and set its' data type to date/time. If you want it to include TODAY's date, you can set the default to CURRENT_TIMESTAMP or GETDATE(), either of which will return the server's current date/time. (storing the time the row was added, this column will not change).

Hope this helps,

ALex

ps- for future reference, you may be better off asking questions like this in forum183 or forum962

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top