select xxx from YourTable where yourTable.nom= textnom.text and yourTable.prenom=textprenom.text
merciiii
Command("Select * from conseillere Where nom='" + textBox3.Text + "'AND prenom='" + textBox4.Text + "'", "Verification");
con.Open();
if (ds.Tables["Verification"].Columns["nom"].ToString() == ds.Tables["Verification"].Columns["prenom"].ToString())
{
MessageBox.Show("le nom est prenom sont déja dans la base de donnée");
else {
traitement
....
]
}
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Command("select * from conseillere Where nom='" + textBox3.Text + "'AND prenom='" + textBox4.Text + "'");
con.Open();
DataReader dtr;
try
{
dtr =Command.ExecuteReader();
if (dtr.Read())
{
MessageBox.Show(le nom est prenom sont déja dans la base de donnée);
Command("select * from conseillere Where nom='" + textBox3.Text + "' AND prenom='" + textBox4.Text + "'");