SQLでのSUBSTRING関数(SUBSTR関数)は、文字列から特定の部分を抽出するために使用されます。 SUBSTRING関数では文字列のインデックスが1から始まることが多いです。 そのため、0をstart位置に指定すると、何も返されないか、エラーが発生する可能性があります。
This is MySQL User Defined Function written by cgo. Substring function.
MySQL includes a number of built-in string manipulation functions that are similar to the functions provided by Web scripting languages such as PHP. You can use these functions in both the "SELECT" ...
Fixes src-d#42 This PR implements the substring(str, start, length) function with the following rules: - negative start or length causes an error. - start bigger or ...