How do I delete the first 3 characters in mysql? -



How do I delete the first 3 characters in mysql? -

how might tell mysql to..

delete first 3 characters mytable.title first 3 characters numbers 01-10 followed space?

example..

delete record in 'title' column looks this:

01 california 09 texas 10 idaho

leave records lone don't start number , space (such these):

california texas idaho

i have several one thousand records want remove these preceding numbers from. thoughts?

update my_table set title=substring(title, 4) title regexp '^[0-9][0-9] ';

mysql

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -