Collections:
Ways to Get the Current Time in MySQL
How Many Ways to Get the Current Time in MySQL?
✍: FYIcenter.com
There are 8 ways to get the current time:
SELECT NOW() FROM DUAL; 2006-07-01 10:02:41 SELECT CURRENT_TIME() FROM DUAL; 10:02:58 SELECT SYSDATE() FROM DUAL; 2006-07-01 10:03:21 mysql> SELECT CURRENT_TIMESTAMP() FROM DUAL; 2006-07-01 10:04:03 SELECT LOCALTIME() FROM DUAL; 2006-07-01 10:07:37 mysql> SELECT LOCALTIMESTAMP() FROM DUAL; 2006-07-01 10:08:08 mysql> SELECT UTC_TIME() FROM DUAL; 14:09:22 mysql> SELECT UTC_TIMESTAMP() FROM DUAL; 2006-07-01 14:09:49
⇒ CREATE, ALTER and DROP Statements in MySQL
⇐ What Is TIMESTAMP Data Type in MySQL
2018-03-13, 3733🔥, 0💬
Popular Posts:
Where to find tutorials to answer some frequently asked questions on Microsoft SQL Server Transact-S...
How to change the data type of an existing column with "ALTER TABLE" statements in SQL Server? Somet...
How To Select All Columns of All Rows from a Table with a SELECT statement in SQL Server? The simple...
How To Verify Your PHP Installation in MySQL? PHP provides two execution interfaces: Command Line In...
How To List All Stored Procedures in the Current Database in SQL Server Transact-SQL? If you want to...