MySQL Connector/Net |
MySqlHelper..::.ExecuteNonQuery Method (String, String, array<MySqlParameter>[]()[]) |
MySqlHelper Class See Also Send Feedback |
Executes a single command against a MySQL database. A new MySqlConnection is created
using the ConnectionString given.
Namespace:
MySql.Data.MySqlClient
Assembly:
MySql.Data (in MySql.Data.dll) Version: 6.2.2.0
Syntax
C# |
---|
public static int ExecuteNonQuery( string connectionString, string commandText, params MySqlParameter[] parms ) |
Visual Basic (Declaration) |
---|
Public Shared Function ExecuteNonQuery ( _ connectionString As String, _ commandText As String, _ ParamArray parms As MySqlParameter() _ ) As Integer |
Visual C++ |
---|
public: static int ExecuteNonQuery( String^ connectionString, String^ commandText, ... array<MySqlParameter^>^ parms ) |
Parameters
- connectionString
- Type: System..::.String
ConnectionString to use
- commandText
- Type: System..::.String
SQL command to be executed
- parms
- Type: array<
MySql.Data.MySqlClient..::.MySqlParameter
>[]()[]
Array of MySqlParameter objects to use with the command.