PreparedStatement,using one parameter for multiple “?”

后端 未结 4 422
名媛妹妹
名媛妹妹 2021-01-24 13:08

I have a insert if not exists query as below.

BEGIN
    IF NOT EXISTS (SELECT * FROM tbl_sampleTable WHERE name = ? or subject = ?)
    BEGIN
        INSERT INTO         


        
4条回答
  •  佛祖请我去吃肉
    2021-01-24 14:01

    JDBC doesn't support named parameters, but Spring JDBC provides this functionality with NamedParameterJdbcTemplate

提交回复
热议问题