Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT UserID, Username, Email, FullName, Initials
- FROM Users
- set Initials = (select left(Email, charindex('@', Email + '@')-1)
- update Users
- set Initials = left(Email, charindex('@', Email + '@')-1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement