Re: Parameters
using MySql.Data.MySqlClient;
....
MySqlConnection c = new MySqlConnection("server=myserver;database=mydatabase;user id=myuser;pwd=mypwd");
c.Open();
MySqlCommand cmd = new MySqlCommand("insert into mytable values (?id, ?name)", c);
cmd.Parameters.Add( "?id", 1 );
cmd.Parameters.Add( "?name", "my text value");
cmd.ExecuteNonQuery();
c.Close();
....
Subject
Written By
Posted
Re: Parameters
January 29, 2005 09:40PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.