SUBSTR() FUNCTION in MySQL

SUBSTR() FUNCTION The MySQL SUBSTR function is used to extract a substring from a string. The various versions of MySQL support the SUBSTR function, namely, MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0 and MySQL 4.1.1. Syntax 1: SUBSTR( string, start_position, length ) Syntax 2: SUBSTR( string FROM start_position FOR length ) Parameters: … Read more