首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

toconn.execute 使用的有关问题

2012-03-04 
toconn.execute 使用的问题1像这种形式iStatetoconn.execute( selectstatefromlistwhereinfo_id &orde

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

热点排行