存储过程,我实在是很晕。
CREATE PROCEDURE ipqajizhong
(
@lineca as char(2)='C%',
@datestart as smalldatetime='2001-08-012',
@dateEnd as smalldatetime='2001-08-22'
)
AS
-------机种
declare @jizhongT char(7)
declare @jizhongT1 char(5)
declare @jizhongT2 char(5)
-------通过批
declare @tongguopi int
-------总批次
declare @zongpici int
--------检验数
declare @jianyanshu int
-------不良数
declare @buliangshu smallint
-------批量允收率
declare @jianpiliang int
declare @tongguoshu int
......................
.....................
以上是部分存储过程
/*********************
Set rs = Server.CreateObject("ADODB.Recordset")
time11="2001-11-12"
time22="2001-12-12"
sql="exec ipqajizhong '"&time11&"','"&time22&"','"&jizhong&"',"&tongguopi&""
为什么总是出错,说没有toonggupi
do while not rs.eof
怎么得到jizhong ,tonggupi 值,