MySQL rejecting parameter

后端 未结 2 2029
误落风尘
误落风尘 2021-01-22 11:17

Ok, I\'m going crazy on this one. MySQL is throwing a fit about this bit of SQL:

INSERT INTO `test_table` 
  ( `column1`, `column2` ) 
VALUES 
  ( ?COURSEID, ?C         


        
2条回答
  •  孤独总比滥情好
    2021-01-22 11:29

    MySQL does not support named parameter placeholders. You can use only positional parameter placeholders. That is, a placeholder is just a ? symbol.

    This conforms to the ANSI SQL behavior, by the way. RDBMS like Oracle support named parameters as an extension to the standard.

提交回复
热议问题