Search
 
SCRIPT & CODE EXAMPLE
 

SQL

postgres extract date from timestamp

SELECT '2018-07-25 10:30:30'::TIMESTAMP::DATE;
Comment

postgres extract time from timestamp

select cast(timestamp '2014-04-03 12:34:00' as time)
-- equivalent to
select '2014-04-03 12:34:00'::time
Comment

postgres extract date from timestamp

SELECT DATE(column_name) FROM table_name;
Comment

postgres extract date from timestamp

SELECT DATE(SUBSTRING('2018-07-25 10:30:30' FROM 1 FOR 10));
Comment

PREVIOUS NEXT
Code Example
Sql :: how to get connect string from mysql database 
Sql :: sql power function 
Sql :: SQL Avoid Duplicates in INSERT INTO SELECT 
Sql :: query to find second highest salary 
Sql :: eliminar ultimo carcacter mysql 
Sql :: oracle show parameter 
Sql :: how to declare a variable in sql 
Sql :: get triggers by query 
Sql :: convert columns to rows in sql server 
Sql :: for select oracle 
Sql :: mysql find_in_set join 
Sql :: uninstall mysql ubuntu 18.04 stackoverflow 
Sql :: postgres windows import dump 
Sql :: select case when oracle 
Sql :: sql update 
Sql :: mysql disable triggers 
Sql :: remove last characters in mysql 
Sql :: mysql in 
Sql :: mysql composite primary key 
Sql :: sql server on mac m1 
Sql :: mysql updating multiple column values from array variable 
Sql :: mysql grant user permissions 
Sql :: sql case statement 
Sql :: sqrt(i) 
Sql :: mysql show foreign keys column 
Sql :: order by sql query 
Sql :: alter table drop partition hive 
Sql :: sql limit to 5 results 
Sql :: mysql query to select the highest value 
Sql :: first max salary in sql 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =