usingMySqlCommandcmd1=newMySqlCommand("DROP TABLE IF EXISTS blog",connection,transation);
cmd1.ExecuteNonQuery();
usingMySqlCommandcmd2=newMySqlCommand("CREATE TABLE IF NOT EXISTS blog (id int NOT NULL AUTO_INCREMENT, title varchar(255), PRIMARY KEY (id))",connection,transation);
cmd2.ExecuteNonQuery();
for(inti=0;i<5;i++)
{
usingMySqlCommandinsertCommand=newMySqlCommand($"INSERT INTO blog (title) VALUES ('Blog post #{i}');",connection,transation);