Skip to content
Advertisement

SQL Insert Into Where

I’m trying to do an insert into SQL command with a where clause. There is an error message that says incorrect syntax near where. How would I go about fixing this?

Advertisement

Answer

Presumably, you want UPDATE, not INSERT:

INSERT adds an entirely new row into the table. UPDATE modifies the values of one or more columns.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement