Home > Net >  Consult a newbie question!
Consult a newbie question!

Time:11-05

String commandStr="insert into allemail (PackageName, time, explain, number) values (1, '" + textBox6 +"',2,33) ";
MySqlConnection conn=new MySqlConnection (connetStr);
CMD. ExecuteNonQuery ();


CMD. ExecuteNonQuery (); An error here

CodePudding user response:


There is no name CMD, all tell you, you go to find the cm this string

CodePudding user response:

CMD is not defined

CodePudding user response:

MySQLCommand CMD=new MySQLCommand (commandStr, conn);
CMD. ExecuteNonQuery ();
  •  Tags:  
  • C#
  • Related