MySqlHelper.ExecuteScalar Method


Execute a single command against a MariaDB 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

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 Class, MySql.Data.MySqlClient Namespace, MySqlHelper.ExecuteScalar Overload List

Retornar