Bonjour,
J'ai un probleme avec le composant devart pour mysql, je souhaiterai utiliser la methode ParamByName mais je sais pas comment.
Voici le code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
mySelectQuery := 'INSERT INTO sensors (IdSensors, NumSerie, coeffA, CoeffB, CoeffC, TypeSensors, Name) VALUES(@, '''+lbSerialNumber.Text+''', '+replaceSQL(Kryptonlabel27.Text)+',  '+
replaceSQL(Kryptonlabel26.Text)+' , '+replaceSQL(Kryptonlabel29.Text)+', '''+
lbType.Text+''', '')';
AdapTable := new Devart.Data.MySql.MySqlDataAdapter(mySelectQuery,conn);                        
DtSet := new Devart.Data.MySql.MySqlDataSet;
AdapTable.Fill(DtSet);