Syntax: C#
public static object ExecuteScalar(
MySqlConnectionconnection,
stringcommandText,
params MySqlParameter[]commandParameters
);
Parameters
• connection:
• commandText: Command text to use for the command
• commandParameters: Parameters to use for the command
Return Value
The first column of the first row in the result set, or a null reference if the result set is empty.
See Also
MySqlHelper
20.2.7.1.7.1.5.3.
MySqlHelper.ExecuteScalar
Execute a single command against a MySQL database.
Syntax: Visual Basic
Overloads Public Shared Function ExecuteScalar( _
ByVal connectionString As String, _
ByVal commandText As String _
) As Object
Syntax: C#
public static object ExecuteScalar(
stringconnectionString,
stringcommandText
);
Parameters
• connectionString: Settings to use for the update
• commandText: Command text to use for the update
Return Value
The first column of the first row in the result set, or a null reference if the result set is empty.
See Also
MySqlHelper
20.2.7.1.7.1.5.4.
MySqlHelper.ExecuteScalar
Execute a single command against a MySQL database.
Syntax: Visual Basic
Overloads Public Shared Function ExecuteScalar( _
ByVal connectionString As String, _
ByVal commandText As String, _
ParamArray commandParameters As MySqlParameter() _
) As Object
Connector/Net API Reference
MySqlConnection
object to use
Class,
MySql.Data.MySqlClient
Class,
MySql.Data.MySqlClient
Namespace,
MySqlHelper.ExecuteScalar Overload List
Method
Namespace,
MySqlHelper.ExecuteScalar Overload List
Method
2033