I want to change '@sadim Hi, blah blah blah.' to 'Hi, blah blah blah.' in SQL Server.
I use this query but it doesn't work :
update mytable
set ttext = REPLACE(ttext, '@% ' , '');
I want to change '@sadim Hi, blah blah blah.' to 'Hi, blah blah blah.' in SQL Server.
I use this query but it doesn't work :
update mytable
set ttext = REPLACE(ttext, '@% ' , '');
This will allow you to skip the @Username part. as the string is starting with the @username get the sub String after that Here stack is your table and name is your column name
https://dba.stackexchange.com/questions/162816/sql-server-replace-with-wildcards