Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. MySqlConnection Conexao = new MySqlConnection("Persist Security Info = False; server = localhost;port = 3307; database=info3; uid = root; pwd = ");
  2. MySqlCommand comando = new MySqlCommand("SELECT CATEGORIA FROM HASHTAG", Conexao);
  3. comando.Parameters.AddWithValue("parametro", lb_categoria.Text);
  4. Conexao.Open();
  5. MySqlDataReader dados = comando.ExecuteReader();
  6. rtb_hashtag.Clear();
  7. while (dados.Read())
  8. {
  9. rtb_hashtag.AppendText(dados["Tags"].ToString();
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement