[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
我要从上面字符串@开始截取,怎么截取它们都是login字段的我是试论好多方法都不行
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
我要从上面字符串@开始截取,怎么截取它们都是login字段的我是试论好多方法都不行
解决方案 »
- sql日志
- Column count doesn't match value count at row 1
- 在线数据占用linux文件系统比例问题
- mysql 存储过程 执行报错,怎么回事?
- 1205: Lock wait timeout exceeded; try restarting transaction
- 请教mysql的一个性能问题
- 100' 十万火急 一个PHPMYADMIN数据库导入的问题 请指点谢谢
- 高手指教:下面这条特别麻烦的SQL SERVER内的子从语句如何转换成MYSQL语句?
- 为什么mysql中的数据库,用着用着就不能用了?
- 从MySQL中读出一张图片被无限放大!
- 一直弄不明白 什么时候用事务
- 导出表时,存在文件名相同该如何删除或覆盖原来文件?
+---------------------------------------------------------+
| substring('[email protected]',1,INSTR('[email protected]','@')-1) |
+---------------------------------------------------------+
| abc |
+---------------------------------------------------------+
1 row in set
+---------------------------------------+
| substring_index('[email protected]','@',1) |
+---------------------------------------+
| abc |
+---------------------------------------+
1 row in set (0.00 sec)
正解!另外提醒下,你的login不能有2个@,否则这样也错。