I’m having a problem with Dim query As New MySqlCommand("Select count(*)....") I would like to take the variable query and do an If query <> 1 Then statement on it. Is this possible or is there a completely other way to go about this comparing the contents of a MySQL select statement. I’m rather new to Visual Basic.
I’m having a problem with Dim query As New MySqlCommand(Select count(*)….) I would like
Share
The
MySqlCommandtype doesn’t return the results after construction, it just creates an object that can run queries. You must then execute the query:Don’t forget to use query parameters rather than string concatenation to substitute data into your sql statements.