Click here to Skip to main content
15,887,135 members
Articles / Database Development / MySQL

query database with selected variables in mysql

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
11 Oct 2012CPOL 0  
MySqlCommand cmd = new MySqlCommand("Select * from table where variable = '@selectedValue'");cmd.Parameters.AddWithValue("@selectedValue", value);...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions