In MySQL, I have a “Student” Table which contains a “StudnetId” column which goes like this:
StudentId
S1
S4
S3
S5
S1
S2
S3
With SQL, how can you remove a character based on the index of the character.
Specifically, I need to remove the “S” for each row in this column when updating the table.
See http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_replace