$str  = 'abcdefg';

php : substr($str,0,5);

mysql:substring($str,1,5);

结果是一样的:abcde, php截取是从0开始的,mysql截取是从1开始的

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-05-28
  • 2021-09-09
猜你喜欢
  • 2022-12-23
  • 2021-09-12
  • 2021-07-17
  • 2021-09-21
  • 2022-01-18
相关资源
相似解决方案