I have a table "users" in mysql with around 2K records. In the table, there is a field "status". The status can be of 2 to 3 words. In few status, at the end, there is a space followed by an asterisk mark. I want to remove the space and asterisk. Please help me with a query to update the values. Here are some examples
Not smiling
always laughing *
never jumps *
keep it up
oh my god *
I want to change this to:
Not smiling
always laughing
never jumps
keep it up
oh my god
SELECT * FROM users WHERE ?????? (How to write the condition?)
EDIT:
Thanks everyone for the answers. Can someone shed some light on which answer is the best considering replacing 2000+ records, utilization of computer resources, memory, efficiency etc...