标签:mysq sql strong from abc 错误 class code sele
关于substr()和substring()区别
MySQL: SUBSTR( ), SUBSTRING( )
Oracle: SUBSTR( )
SQL Server: SUBSTRING( )
例如 Oracle:
select substr(‘abcde‘,0,3) from table;
结果:abc
MySQL:
select substr(‘abcde‘,0,3);//错误
(记住)转MySQL的时候要把0改为1:
select substr(‘abcde‘,1,3);
结果:abc
标签:mysq sql strong from abc 错误 class code sele
原文地址:https://www.cnblogs.com/starsupreme/p/14815613.html