hox6

导航

 

 

//删除----------------------------------------------------------------------------------------------
string sqldelete = " DELETE FROM bookshop WHERE 编号 = 6 ";

using (MySqlCommand command = new MySqlCommand(sqldelete, connection))
{
int rowsAffected = command.ExecuteNonQuery();

Console.WriteLine("\n");
Console.WriteLine( "\n" +$"{rowsAffected} 条数据已删除!");
}

 

删除成功

 

posted on 2023-08-22 09:32  云杉木板  阅读(18)  评论(0编辑  收藏  举报