读书人

toconn.execute 使用的有关问题

发布时间: 2012-03-04 11:13:34 作者: rapoo

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
......

读书人网 >ASP

热点推荐