= Substring index
{wiki=Substring_index}
The \`SUBSTRING_INDEX()\` function is a string function available in SQL databases such as MySQL. It allows you to extract a portion of a string based on a specified delimiter and a count. \#\#\# Syntax \`\`\`sql SUBSTRING_INDEX(string, delimiter, count) \`\`\` \#\#\# Parameters: - **string**: The input string from which you want to extract a substring. - **delimiter**: The character or substring that determines where the splitting occurs.
Back to article page