Remove spaces via Update

Asked

Viewed 2,557 times

3

I have a field called titulo, on the table noticias. Unfortunately, due to forgetting the command trim PHP, has several titles with space at the beginning and end of string. How can via SQL (Mysql) update titles by removing the spaces at the beginning and end, in a single SQL command?

  • Did the answer solve your problem? Do you think you can accept it? If you don’t know how, check out the [tour] how to do it. This would help a lot to indicate that the solution was useful for you and help everyone understand that. You can also vote for anything on the entire site.

1 answer

6

Browser other questions tagged

You are not signed in. Login or sign up in order to post.