日期:2014-05-17  浏览次数:21283 次

toconn.execute 使用的问题
1   像这种形式
iState   =   toconn.execute( "select   state   from   list   where   info_id= "&orderid)(0)
当select不到结果的话会出错
是不是只能select一次判断是否eof再取数据呢

2   像这种形式
toconn.execute( "update   list   set   name= ' "&sValue& " '   where   info_id= "&orderid)
也是同上的问题
这个怎么解决呢

------解决方案--------------------
iState = toconn.execute( "select state from list where info_id= ' "&orderid& " ' ")
....
要有
do while not iState.eof
......