0
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 could not find 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 ?
https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_locate
– Diego Rafael Souza