So I have a bunch of contacts in a database whose first names begin with a space. I want to replace the first character of all contacts if it's a space with nothing (I mean '').
For now I have:
UPDATE contact
SET SUBSTRING(contact.FirstName, 1, 1) = ''
WHERE contact.FirstName LIKE ' %'
It says that I have a syntax error and I'm not sure why. Unfortunately I'm not exactly sure how to ask this question so I find nothing online.
What should I do instead? Thanks in advance.