fork download
  1. OleDbConnection connection = new OleDbConnection("connectionstring");
  2. String strCom = String.Format(@"INSERT INTO Rent (memID , bookID , rentDate) VALUES
  3. ('{0}','{1}','{2}') UPDATE Book bookStatus ='1' WHERE bookID ='{3}' )",txtMemID.Text , txtBookID.Text, dtp.Value.ToShortDateString(),txtBookID.Text);
  4.  
  5. OleDbCommand command= new OleDbCommand (strConn, connection );
  6. connection.Open();
  7. command.ExecuteNonQuery();
  8. connection.Close();
  9.  
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,17): error CS0116: A namespace can only contain types and namespace declarations
prog.cs(2,8): error CS0116: A namespace can only contain types and namespace declarations
prog.cs(5,14): error CS0116: A namespace can only contain types and namespace declarations
prog.cs(6,16): error CS8025: Parsing error
Compilation failed: 4 error(s), 0 warnings
stdout
Standard output is empty