How to validate sql query syntax?

后端 未结 6 2102
忘掉有多难
忘掉有多难 2020-12-09 22:51

java 1.4 Sql server 2000

i am taking input of sql query (for validation of field value against values retrieved by executing sql query) from admin user which will be

6条回答
  •  爱一瞬间的悲伤
    2020-12-09 23:51

    Create a PreparedStatement with the query string; if this works, the query string is ok (but nothing is executed yet)

提交回复
热议问题