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 :: oracle dba_dependencies 
Sql :: how to find special characters in sql 
Sql :: update foreign key value in mysql 
Sql :: insert into values select 
Sql :: mysql url data type 
Sql :: drush run sql select 
Sql :: if mysql 
Sql :: select random sample sql 
Sql :: mysql function 
Sql :: sql having clause 
Sql :: minus in sql 
Sql :: change column name mysql 
Sql :: sql server current time without date 
Sql :: default password for mysql_secure_installation in mac 
Sql :: sql delete duplicate rows 
Sql :: second highest salary in sql 
Sql :: multiple replace value mssql 
Sql :: SQL Avoid Duplicates in INSERT INTO SELECT 
Sql :: add column in table 
Sql :: postgresql change user role grant 
Sql :: stuff sql server 
Sql :: if else in mysql stored procedure 
Sql :: oracle avg 
Sql :: postgresql regex extract a word from string 
Sql :: sqlite commands 
Sql :: mysql function to remove multiple spaces from the string 
Sql :: sql statement to change a field value 
Sql :: create table with float datatype in sql server 
Sql :: sql join on a subquery 
Sql :: mysql select row with max value group by 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =