MySQL Connector/Net |
MySqlHelper..::.ExecuteNonQuery Method (MySqlConnection, String, array<MySqlParameter>[]()[]) |
MySqlHelper Class See Also Send Feedback |
Executes a single command against a MySQL database. The MySqlConnection is assumed to be
open when the method is called and remains open after the method completes.
Namespace:
MySql.Data.MySqlClient
Assembly:
MySql.Data (in MySql.Data.dll) Version: 6.2.2.0
Syntax
C# |
---|
public static int ExecuteNonQuery( MySqlConnection connection, string commandText, params MySqlParameter[] commandParameters ) |
Visual Basic (Declaration) |
---|
Public Shared Function ExecuteNonQuery ( _ connection As MySqlConnection, _ commandText As String, _ ParamArray commandParameters As MySqlParameter() _ ) As Integer |
Visual C++ |
---|
public: static int ExecuteNonQuery( MySqlConnection^ connection, String^ commandText, ... array<MySqlParameter^>^ commandParameters ) |
Parameters
- connection
- Type: MySql.Data.MySqlClient..::.MySqlConnection
MySqlConnection object to use
- commandText
- Type: System..::.String
SQL command to be executed
- commandParameters
- Type: array<
MySql.Data.MySqlClient..::.MySqlParameter
>[]()[]
Array of MySqlParameter objects to use with the command.