我正在使用 jquery 和 db2。我的执行时间低于错误
Error:SQL:The OdbcParameterCollection only accepts non-null OdbcParameter type objects, not OleDbParameter objects.
我的 DB2 sql
Create procedure myparameters(
IN vname VARCHAR(500),
IN vurl VARCHAR(1000),
IN vyear VARCHAR(10),
IN vmonth VARCHAR(10)
)
language sql
BEGIN ATOMIC
SET vname = '~p_hostname~'; -- these tild values are coming from jquery
SET vurl = '~p_url~';
SET vmonth = '~p_month~';
SET vyear = '~p_year~';
select hour as hours,tvalue as seconds from myschema.my_view
WHERE
name = vname and
url= vurl and
month = CAST(vmonth AS INT) and
year = CAST(vyear AS INT) and
VALUE_TYPE ='access Time'
order by hour;
END@