date
STR_TO_DATE
SELECT STR_TO_DATE('11/09/2020', '%m/%d/%Y')
SELECT STR_TO_DATE('2020-11-10', '%Y-%m-%d')
# 当前登录用户,当前数据库
SELECT CURRENT_USER(), SCHEMA();
other
#连接
mysql -h 192.168.6.170 -P 3306 -u root -p123
show databases;
show tables;
use database_name;
select version(); //查看mysql版本
select database(); //查看数据库
select current_date(); //查看MySQL的当前日期
describe mytable; 显示表的结构或 show columns from 表名;
convert
# blob to string
select convert(f.content using utf8) from blog