Can i use a parameter multiple times in the qame query?

Posted by djerry on Stack Overflow See other posts from Stack Overflow or by djerry
Published on 2010-06-08T13:28:50Z Indexed on 2010/06/08 13:32 UTC
Read the original article Hit count: 180

Filed under:
|
|

Hey guys,

i was wondering, can a parameter be used more then once in the same query, like this :

MySqlParameter oPar0 = new MySqlParameter("e164", MySqlDbType.String);
oPar0.Value = user.E164;
string sSQL0 = "Delete from callmone.call where (caller=?e164 or called=?e164);";
clsDatabase.ExecuteSQL(sSQL0, oPar0);

Is this possible or should i write 2 parameters?

© Stack Overflow or respective owner

Related posts about c#

Related posts about mysql