I'm getting this error when I'm trying to execute query in SQL Server using terminal.
Query
REPLACE INTO [wine].[Spirits] (skuId, name, packageDescription, packageValue, price)
VALUES ('1', '1a', '2b', 'd', '12.00')
Error
Msg 156, Level 15, State 1, Server localhost, Line 1
Incorrect syntax near the keyword 'INTO'
Additional info: insert query is working properly
INSERT INTO [wine].[Spirits] (skuId, name, packageDescription, packageValue, price)
VALUES ('1', 'a', 'b', 'd', '12.00')
Can anyone point out what's I'm doing wrong here?
I know this sounds like very basic question in SQL Server, but sorry I'm new to this language.
I'm not sure whether REPLACE
is available in SQL Server.
Thanks