I need to Update a Column using Replace Query but I won't know 10 characters and i need to fill that up with _ just like in LIKE statements
UPDATE USERS SET LASTONLINE = REPLACE(LASTONLINE, "User1:__________", "User1:1620647000") WHERE NUMBER = '9988776655'
I'm trying to store timestamp of when the user was last online. I cannot change the table structure for many reasons which makes the question bigger. I just want to replace the old Timestamp which i won't know with the new one. I'm sure this can be done but having trouble with the logic. Any help is appreciated
Structure
NUMBER | LASTONLINE
9988.. | User1:<timestamp>,User2:<timestamp>