cnn = New MySqlConnection cnn.ConnectionString = ("server=localhost;userid=root;password=root;database=hello") Try cnn.Open() Dim query As String query = "SELECT * from hello.emp" cmd = New MySqlCommand(query, cnn) rdr9 = cmd.ExecuteReader While rdr9.Read Dim adr = rdr9.GetString("address") ComboBox1.Items.Add(adr) End While cnn.Close() Catch ex As MySqlException MessageBox.Show(ex.Message) Finally cnn.Dispose() End Try
calcutta delhi delhi delhi calcutta delhi
query = "SELECT distinct address from hello.emp"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)