通过JavaScript验证Sql查询 [英] Validate a Sql Query through Javascript
本文介绍了通过JavaScript验证Sql查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个在其中编写Sql查询的文本框.现在我需要在保存该查询之前在文本框中验证查询.
如果它通过任何Sql异常,我们不允许使用Javascript
I have a text box in which I write Sql quries.Now I need to validate the query in the text box before saving that query .
If it through any Sql exception we dont allow to save the query using Javascript
推荐答案
保存查询,请参见以下线程以了解不同的选项:
http://bytes.com/topic/javascript/answer/762400-validating-sql-query-entered-user-using-java-script [
please see the following thread for different options:
http://bytes.com/topic/javascript/answers/762400-validating-sql-query-entered-user-using-java-script[^]
这篇关于通过JavaScript验证Sql查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文