Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get server date mysql

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
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql show table structure 
Sql :: oracle trigger after connect 
Sql :: change row in sql 
Sql :: create table in mysql 
Sql :: change column name sql server management studio 
Sql :: how to get nears location in mysql with latitude and longitude 
Sql :: postgres foreign key multiple columns 
Sql :: create pl/sql stored procedure 
Sql :: load sql into mamp 
Sql :: is between inclusive or exclusive sql 
Sql :: mysql select tables with name like 
Sql :: sql select second max 
Sql :: is not numeric sql 
Sql :: how to assign date field for table in mysql 
Sql :: postgresql casting integer to string 
Sql :: sql server list locks 
Sql :: select nextval from sequence oracle 
Sql :: add column text sql after column 
Sql :: alter table id autoincrement 
Sql :: select into temp table 
Sql :: how to show index type in postgresql 
Sql :: postgresql get today 
Sql :: postgre sql create table 
Sql :: xampp import sql file command line 
Sql :: foreign key constraint in ms sql 
Sql :: sql sum by column 
Sql :: CONVERT time string into 12 hours in sql 
Sql :: create or replace function 
Sql :: change filed order in mysql 
Sql :: mysql like case sensitive 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =