Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fdb
- con = fdb.connect(
- dsn='192.168.0.215:C:\PublicFolders\Services\Arena\DB\ARENA.GDB',
- user='sysdba', password='masterkey'
- )
- # Create a Cursor object that operates in the context of Connection con:
- cur = con.cursor()
- # Шоб полосочка такая
- print ('-' * 78)
- # Запрос в базу
- cur.execute("select first(10) uid,uet from visit where uid=294581 order by uet desc")
- # Retrieve all rows as a sequence and print that sequence:
- result = cur.fetchall()
- for row in result:
- print(*row, sep = ' ID пациента - УЕТы ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement