Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import psycopg2
- with psycopg2.connect("dbname=playground host=*** user=*** password=***") as db:
- users = [['Test', 20] for i in range(0, 3)]
- print(users)
- cur = db.cursor()
- cur.callproc('entry_users', (users,))
Add Comment
Please, Sign In to add comment