Possible Duplicate:
MySQL, update multiple tables with one query
I'd like to know how to update two different tables with a single query, using MySql and C#.
Here is my query to read the data from the database.
string sql = @"SELECT clb.clube AS nome, clb.email AS email, clb.telefone AS
telefone, usr.login AS login, usr.senha AS senha
FROM clubes AS clb
INNER JOIN usuarios AS usr ON usr.nome = clb.clube
WHERE usr.login = @log";
Note that I get the data from usr
and clb
. Now, I'd like to update it. How can I do that?