js调用sql存储过程,可以把语句写到存储过程,按钮点击事件,js如下
var sql="exec sp_rms_select_0460 "+FUNDCODE+","+DATE+","+STATUS;
var res=FR.remoteEvaluate('=sql("dbbasedata","'+sql+'",1,1)');
=====
var sql="exec 存储过程名称 "+参数1+","+参数2+","+参数3;
var res=FR.remoteEvaluate('=sql("数据库连接","'+sql+'",1,1)');