daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmd = new MySqlCommand("SELECT * FROM prueba.facturas where Certificado = @certificado", conn);
  2. cmd.Parameters.AddWithValue("@certificado", xCertificado);
  3. cmd.ExecuteNonQuery();
  4. if (consulta es =  0){
  5.  
  6. }
  7.      
  8. cmd = new MySqlCommand("SELECT count(*) FROM prueba.facturas where Certificado = @certificado", conn);
  9. cmd.Parameters.AddWithValue("@certificado", xCertificado);
  10. if(cmd.ExecuteScalar() > 0 ) { existe }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top