Here is my SQL query:
UPDATE Q
SET Q.FirstName="ram"
FROM Person Q
It gives me the following error:
Error 1: could not prepare statement (1 near ".": syntax error)
Can anyone tell me where I went wrong with this? Thanks in advance.
Here is my SQL query:
UPDATE Q
SET Q.FirstName="ram"
FROM Person Q
It gives me the following error:
Error 1: could not prepare statement (1 near ".": syntax error)
Can anyone tell me where I went wrong with this? Thanks in advance.
You use from clause only if you update your table with data from other table. If not just:
UPDATE Person
SET FirstName='ram'