mydb 数据库操作类
1.MysqlConnection连接,打开;
2.MySqlCommand创建
3.MySqlConnection.Close;
TextBox控件数据直接插入示例:
mydb db=new mydb();
TextBox1.Text;
TextBox2.Text;
int.Parse(TextBox3.Text);
TextBox4.Text;
TextBox5.Text;
string str="insert into serverconfig(servername,ipaddress,username,userpassword) values ('"+TextBox1.Text+"','"+TextBox2.Text+"','"+TextBox4.Text+"','"+TextBox5.Text+"')";
db.DeleteInset(str);
1.MysqlConnection连接,打开;
2.MySqlCommand创建
3.MySqlConnection.Close;
TextBox控件数据直接插入示例:
mydb db=new mydb();
TextBox1.Text;
TextBox2.Text;
int.Parse(TextBox3.Text);
TextBox4.Text;
TextBox5.Text;
string str="insert into serverconfig(servername,ipaddress,username,userpassword) values ('"+TextBox1.Text+"','"+TextBox2.Text+"','"+TextBox4.Text+"','"+TextBox5.Text+"')";
db.DeleteInset(str);