Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Executing MySQL Commands | Introduction to Databases with .NET
Introduction to .NET with C#

bookChallenge: Executing MySQL Commands

メニューを表示するにはスワイプしてください

Your task is to:

  • Create a MySqlCommand object using the commandText command and the connection object;
  • Execute the command using the appropriate method;
  • Close the connection after executing the command;
  • Enclose the code into a try-catch block to make it safer.

Note

The unit tests related to MySQL tasks will only pass if the application connects to an actual database, so for this task, you need to have the MySQL database installed on your device. You can modify the connection string to your local database details for testing purposes. Alternatively, you can compare your code with the given solution code.

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  7

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 3.  7
some-alt