Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » System FunctionsRSS Feeds

CURRENT_TIMESTAMP Function

Posted By: Sarita Patel     Category: SQL Server     Views: 2578

This article explains about CURRENT_TIMESTAMP function in sql server with examples.

CURRENT_TIMESTAMP function returns the current date and time. This function is equivalent to GETDATE() function.

It is a nondeterministic i.e It returns different value every time it is called with a specific set of values.


Syntax of CURRENT_TIMESTAMP Function :

CURRENT_TIMESTAMP

Return type of above function is a datetime.




Examples of CURRENT_TIMESTAMP Function :

Example 1 : Use of CURRENT_TIMESTAMP function in select clause 

SELECT CURRENT_TIMESTAMP

Output
2010-08-17 16:14:12.200

Above example returns todays date and current time.
  
Share: 

 

Didn't find what you were looking for? Find more on CURRENT_TIMESTAMP Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of CURRENT_TIMESTAMP Function is from United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!