Search
 
SCRIPT & CODE EXAMPLE
 

SQL

postgresql get date now

If you want get the current date and time without timezone, you can cast it explicitly as follows:

SELECT NOW()::timestamp;
            now
----------------------------
 2017-03-17 18:37:29.229991
(1 row)
Code language: SQL (Structured Query Language) (sql)
Comment

postgresql get today

SELECT CURRENT_DATE;
Comment

postgresql get date now

SELECT NOW();
              now
-------------------------------
 2017-03-18 08:21:36.175627+07
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql store ip address 
Sql :: vowels in sql 
Sql :: remove unique key from a table 
Sql :: create view in sql 
Sql :: mysql count number of occurrences in a column 
Sql :: how to run mysql on terminal mac 
Sql :: default constraint in ms sql 
Sql :: sql drop column 
Sql :: how to create a sql database 
Sql :: drop temp table if exists 
Sql :: sql server information_schema temp tables 
Sql :: update and replace mysql 
Sql :: how to check grants on a package in oracle 
Sql :: sqlalchemy return id after insert 
Sql :: What is dialect for Postgres 
Sql :: ascending order and where in sql 
Sql :: nullif postgresql 
Sql :: delete database mysql command 
Sql :: json query 
Sql :: update with inner join sql server 
Sql :: mysqldump with where clause 
Sql :: change magento database url usimg musql 
Sql :: PostgreSQL types and C# types 
Sql :: android studio SQLiteDatabase delete all data in database 
Sql :: set value to null sql 
Sql :: mssql datetime to date 
Sql :: Index a database column sql 
Sql :: sql select min row 
Sql :: mysql find duplicates 
Sql :: mysql not defined 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =