例如,select * from company where id=i 其中,i是一个变量,不是固定值
[解决办法] dim sqlstr as string ="select * from company where id=" & i [解决办法] dim sqlstr as string ="select * from company where id=" & i [解决办法] 学习一下ADO的知识!
[解决办法] dim sql$ sql="select * from company where id=" & i