Microsoft
Software
Hardware
Network
Question : Is getdate() the same as CURRENT_TIMESTAMP in a query?
There are not real queries: ItemDate is a datetime column
SELECT * FROM Items WHERE ItemDate > CURRENT_TIMESTAMP
SELECT * FROM Items WHERE ItemDate > getdate()
Also, if you have a DateTime field, can you set it's default to be CURRENT_TIMESTAMP? Or should you use getdate() as it's default value?
I am understand the difference between the datetime column type and the timestamp column type, but I was wondering about the CURRENT_TIMESTAMP variable and if you can use it the same as getdate() in calculations etc.
Answer : Is getdate() the same as CURRENT_TIMESTAMP in a query?
current_timestamp
is more common syntax across all types of Database system...
and a timestamp is again usually recognised as a datetime in other systems...
microsodt like to use things like now() , getdate()
Random Solutions
Services Crashing Multiple Times Per Day: wuauserv, bits, browser, trkwks, dmserver, seclogon, lanmanserver, audiosrv, sharedaccess, wzcsvc, and lanmanworkstation
How to write a shell script to untar files?
Removing multiple lines from a file with Bash Script
Estimating live chat traffic?
ntfs error: ntfs logfile has not been flushed (f1=0)
E-Mail Stuck in Outbox
ACPI Unable to locate RSDP - Fedora Core 6
Remote host said: 550 5.7.1 Requested action not taken: message refused.
When Using Acrobat 9 Pro Extended to Create PDFs from Word 2007 my Images have Unwanted Borders
Sql server error