I have information saved in a mysql field with the following format:
STRING STRING STRING XXX
Separating these strings there are 4 spaces. I would like to remove everything that is after these 4 spaces, but I did not get a way to do the whole update ignoring everything after them.
Something like update tabela set campo = campo-(tudo depois dos 4 espaços)
Any suggestions?