摘要:
mysql字符串截取update zcat set lev1 = left(zcatId,1) where lev1 is null;update zcat set lev2 = left(zcatId,2) where lev2 is null; 函数: 1、从左开始截取字符串 left(str, length) 说明:left(被截取字段,截取长度) 例:select left(content,200) as abstract from my_content_t 2、从右开始截取字符串 right(str, length) 说明:right(被截取字段,截取长度) 例:s... 阅读全文