摘要:
1、修改表字段类型 alter table users_log modify column code smallint(4); 2、增加表字段 alter table users_log add error_code mediumint(5); ALTER TABLE 表明 add 字段名称 类型( 阅读全文
posted @ 2020-08-05 16:56
Ambtin
阅读(480)
评论(0)
推荐(0)
摘要:
binary:强制区分大小写 regexp:正则匹配 例:查询表users中username字段中存在大写字母的个数 select count(*) from users where binary username regexp '[A-Z]'; 阅读全文
posted @ 2020-08-05 16:51
Ambtin
阅读(351)
评论(0)
推荐(0)
摘要:
CONCAT(str1, str2):字符连接函数 UPPER(str):将字符串改为大写字母 LOWER(str):将字符串改为小写字母 LENGTH(str):判定字符串长度 SUBSTRING(str, a, b):提取字段中的一段,从字符串str的第a位开始提取,提取b个字符 LEFT(st 阅读全文
posted @ 2020-08-05 16:41
Ambtin
阅读(2853)
评论(0)
推荐(0)

浙公网安备 33010602011771号