Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1.  
  2. sentenciaSQL.Append("SELECT CODCLIENTE, RAZONSOCIAL, ");
  3. sentenciaSQL.Append("RUC, DIRECCION, CODREGION, CODPROVINCIA, CODDISTRITO, ");
  4. sentenciaSQL.Append("TIPODOCUMENTO, NRODOCUMENTO, ESTADO, ");
  5. sentenciaSQL.Append("FECHAREGISTRO ");
  6. sentenciaSQL.Append("FROM cliente ");
  7. sentenciaSQL.Append("WHERE TIPODOCUMENTO = 'pCliente.tipoDocumento' ");
  8. sentenciaSQL.Append("AND NRODOCUMENTO = 'pCliente.nrodocumento'; ");
  9.  
  10.  
  11. sentenciaSQL.Append("SELECT CODCLIENTE INTO p_codcliente ");
  12. sentenciaSQL.Append("FROM cliente ");
  13. sentenciaSQL.Append("WHERE TIPODOCUMENTO = 'pCliente.tipoDocumento' ");
  14. sentenciaSQL.Append("AND NRODOCUMENTO = 'pCliente.nrodocumento'; ");
  15.  
  16.  
  17. sentenciaSQL.Append("SELECT CODCONTACTO, CODCLIENTE, ");
  18. sentenciaSQL.Append("NOMBRESYAPELLIDOS, EMAIL, INDENVIOEMAIL, ");
  19. sentenciaSQL.Append("TELEFONO, RELACION ");
  20. sentenciaSQL.Append("FROM contacto_cliente ");
  21. sentenciaSQL.Append("WHERE CODCLIENTE = pCodClienteObtenido; ");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement