Guest User

Untitled

a guest
Jun 11th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. conn = psycopg2.connect(host="localhost", dbname='postgres', user='postgres', password=postgres)
  2. cur = conn.cursor()
  3. cur.execute("select id_log, nm_ip, dh_chamada, nm_tipo, nm_contexto, cd_http, in_tamanho from tb_log")
  4. cur.fetchone()
  5.  
  6. cur.execute("select id_log, nm_ip, dh_chamada, nm_tipo, nm_contexto, cd_http, in_tamanho from tb_log")
  7. psycopg2.ProgrammingError: relation "tb_log" does not exist
  8. LINE 1: ...amada, nm_tipo, nm_contexto, cd_http, in_tamanho from tb_log
  9. ^
  10.  
  11. SELECT id_log, nm_ip, dh_chamada, nm_tipo, nm_contexto, cd_http, in_tamanho
  12. FROM tb_log;
  13.  
  14. 1,'12 ','2018-06-07 13:03:13','HEAD ','/FDSFDS',200,1000
Add Comment
Please, Sign In to add comment