mysql get first character and store in id code example Example: mysql query first character SELECT author FROM lyrics WHERE author LIKE 'B%';