Search
 
SCRIPT & CODE EXAMPLE
 

SQL

what is datetime in sql server

The DATETIME format in SQL servers is below:
YYYY-MM-DD hh:mm:ss
Below is an example:
2019-08-20

YYYY-MM-DD hh:mm:ss<--> 2019-08-20 
Comment

sql server datetime

DECLARE @date date = '12-21-16';  
DECLARE @datetime datetime = @date;  
  
SELECT @datetime AS '@datetime', @date AS '@date';  
  
--Result  
--@datetime               @date  
------------------------- ----------  
--2016-12-21 00:00:00.000 2016-12-21  
Comment

PREVIOUS NEXT
Code Example
Sql :: graphql 
Sql :: sql arithmetic operators 
Sql :: square in sql 
Sql :: oracle db timestamp auto add 
Sql :: mysql default port number 
Sql :: sql set data from a select query to a temp table and insert 
Sql :: sql insert into 
Sql :: export database sql file from xampp using cmd 
Sql :: mysql max() 
Sql :: oracle drop type if exists 
Sql :: case condition in mongodb 
Sql :: sql get month 
Sql :: select indexes postgres 
Sql :: how to start with sql 
Sql :: disable trigger sql server 
Sql :: missing left parenthesis error in sql 
Sql :: changing name of column and datatype in sql 
Sql :: mysql date time string format for marshmellow field schema 
Sql :: sqlyog clear cache query 
Sql :: round .5 to 1 in sql server 
Sql :: calculer pourcentage mysql 
Sql :: alter in sql 
Sql :: select multiple tables mysql 
Sql :: cql insert 
Sql :: sql check constraint 
Sql :: mysqldump password in file 
Sql :: postgresql alter column data type from integer to integer array 
Sql :: syntax error at or near "AUTO_INCREMENT" 
Sql :: how to increase the width of the screen in oracle 
Sql :: mysql sleep connections 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =