select SUBSTR('我爱中国我爱毛主席', 0, 4) as cutstr
行 | cutstr |
1 | 我爱中国 |
luoganttcc 博主文章分类:sql ©著作权
select SUBSTR('我爱中国我爱毛主席', 0, 4) as cutstr
行 | cutstr |
1 | 我爱中国 |
加密:为你的长字符串提供最高级别的保护!!!
写在前面:很希望大家在学习这写东西的时候一定要看比较官网的文档:MDN,自己去查一查。官方警告:尽管 String.prototype.substr(…) 没有严格被废弃 (as in “removed from the Web standards”), 但它被认作是遗留的函数并且可以的话应该避免使用。它并非JavaScript核心语言的一部分,未来将可能会被移除掉。如果可以的话,使用 substring() 替代它.作用:substr()方法返回一个字符串中从指定位置开始到指定字符数的字符语法:
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M