MySQL 常用命令[不断更新中]
1.查看表结构
DESC TableName;
2.查看表创建语句
SHOW CREATE TABLE TableName
3.连接字符串
CONCAT(r.USER_ID,”:")
4.截取字符串
RIGHT(r.CARD_ID,6)
LEFT(r.CARD_ID,6)
substring(str, pos, length)
thinking and coding
1.查看表结构
DESC TableName;
2.查看表创建语句
SHOW CREATE TABLE TableName
3.连接字符串
CONCAT(r.USER_ID,”:")
4.截取字符串
RIGHT(r.CARD_ID,6)
LEFT(r.CARD_ID,6)
substring(str, pos, length)