VB连接MYSQL的代码设计下面用recordset.open方法运行命令:DIMcnasNEWADODB.ConnectionDIMrstasNEWADODB.Recordsetcn.ConnectionString="DSN=myodbc;uid=root;pwd=19941214"cn.Opencn.CursorLocation=adUseClient‘使用本地游标库提供的客户端游标rst.Open"select*fromsinger",cn,adOpenKeyset,adLockOptimisticCallrefre