Mysql
 sql >> Database >  >> RDS >> Mysql

VB MySql AddWithValue non passa il valore correttamente

rimuovi @

Dim cmd As New MySqlCommand("SELECT code FROM decoder WHERE ann_id = @aid", conn) 
cmd.Parameters.AddWithValue("aid", 1)
Dim reader As MySqlDataReader = cmd.ExecuteReader()