mysql substr()函数

mysql中的substr()函数和hibernate的substr()参数都一样,就是含义有所不同。

用法:

substr(string string,num start,num length);
  string为字符串;
  start为起始位置;
  length为长度。

注意:

mysql中的start是从1开始的。

示例:

原文地址:https://www.cnblogs.com/yyxianren/p/12881327.html