dim reader as oledbreader dim comm as new oledbcommand comm.connection=conn comm.commandtext="select * from database where ID=@p1" comm.parameters.add("@p1",datatype.int32,30) reader=comm.executereader 大致是这样的
txtsql = "select * from supplier" & " where supplier_no=" & "'" & supptype_no & "'"
dim comm as new oledbcommand
comm.connection=conn
comm.commandtext="select * from database where ID=@p1"
comm.parameters.add("@p1",datatype.int32,30)
reader=comm.executereader
大致是这样的