写个简单的connection
Dim connectStr as String = "..."
Dim connection as new Odbc.OdbcConnection(connectStr)
Dim sqlStr = "select ...."
Dim cmd as new Odbc.OdbcCommand(sqlStr, connection)
connection.open()
1.Dim reader as Odbc.OdbcDataReader = cmd.executeReader(..)
2.Dim reader as new Odbc.OdbcDataReader = cmd.executeReaer(..)
我的问题在最下面这两行
1是正确的
2是错误的
但是我还是不懂2的错误在哪?
这个new 到底要怎么用才对?
网上爬了一堆文 但是还是不清楚
请高手解答