Dim MyODBCConnexion As New OdbcConnection(MyConString) Try Dim ds As New DataSet() Dim cmd As OdbcDataAdapter = New OdbcDataAdapter(ReqSQL, MyConString) Dim MyCommand As New OdbcCommand() Dim MyDataReader As OdbcDataReader cmd.Fill(ds, NomDataSet) MyODBCConnexion.Close() Return ds Catch MyOdbcException As OdbcException ' HttpContext.Current.Response.Write(MyOdbcException.ToString) Catch MyException As Exception ' HttpContext.Current.Response.Write(MyException.ToString) End Try End Function //对函数的调用 |
正在阅读:.Net中操作MySql数据库.Net中操作MySql数据库
2004-03-31 15:07
出处:CSDN
责任编辑:sdq
键盘也能翻页,试试“← →”键