1. 程式人生 > >mysql日期函數

mysql日期函數

ack variables log lob now() tab .sh bak nbsp

SELECT NOW();

SELECT CURDATE();

SELECT YEAR(NOW())

SELECT CONCAT("mysqldump ","-uroot ","-p123 ",table_schema," ",table_name,">/tmp/",table_schema,"_",table_name,".sql")
FROM information_schema.tables
WHERE table_schema=‘world‘
INTO OUTFILE ‘/tmp/world_
bak.sh

SHOW GLOBAL STATUS LIKE ‘%innodb%‘

顯示連接誒狀態

SHOW GLOBAL VARIABLES LIKE ‘%log%‘;

show processlist;

顯示連接數

mysql日期函數