Les instructions MySqlxxxx
Salut à tous.
J'ai récupérer du code sur internet.
J'utilise le VB.net 2005 avec le connecteur de MySQL.
Mais je ne comprend pas certaines choses comme par exemple MySqlDataReader, MySqlDataAdapter ou encore DataSet
Voici un exemple concret :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| Public Function Executer_requete(ByVal requete As String) As MySqlDataReader
Try
Me.GetMyAdapter().SelectCommand = New MySqlCommand(requete, Me.Getconnection_base)
Dim reader As MySqlDataReader = Me.GetReader()
Catch ex As MySql.Data.MySqlClient.MySqlException
MsgBox(ex.Message)
Catch ex As System.Exception
MsgBox(ex.Message)
End Try
Return reader
End Function |
Merci beaucoup de vos éclaircissements.