Guest User

Untitled

a guest
Jul 9th, 2018
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1.  
  2.                 conexion = psycopg2.connect("host=localhost port=5432 dbname='TECNIKA_PRUEBAS_2' user='master' password='1234'")
  3.                 cr = conexion.cursor()
  4.                 cr.execute('select id, internal_number from account_invoice limit 5')
  5.                 registros = cr.fetchall()
  6.                 for reg in registros:
  7.                     print ("Registros del query", reg)
Add Comment
Please, Sign In to add comment