I need to update a record in table users where the record number is within a variable
the variable is called “ invoice” it’s value is G-123-456
I need to filter on just the 456 part of the variable.
UPDATE users
SET active=0
WHERE user_usr LIKE ‘ ‘’-’’-invoice
Not sure where to start on this.
Nick