sql 的索引从1开始
语句:select substring('abcdef',2,3)
结果:bcd
c#,js的索引从0开始
语句:string a = "abcdef";
string b = a.Substring(2, 3);
Console.WriteLine(b);
结果:cde
sql 的索引从1开始
语句:select substring('abcdef',2,3)
结果:bcd
c#,js的索引从0开始
语句:string a = "abcdef";
string b = a.Substring(2, 3);
Console.WriteLine(b);
结果:cde