I have the following query:
REPLACE sessions (session_id,session_data,expires) VALUES('pcal586o43604g0vpu5j22', 'id|i:111;user|N;s:9:\\\"admin\\\";admin_page|s:16:\"/control/\";', 1317934461)
Which works fine with mysql but when using SQL SERVER it throws this error:
Msg 102, Level 15, State 1, Line 1 Incorrect syntax near ‘session_id’.
Can anyone tell me anything that might be wrong with this query?
SQL Server has no equivalent to MySQL’s REPLACE. You’d have to code the functionality manually.