GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-driver/samples/BatchInsert.py at master · Teradata/python-driver Expand file tree/ Copy pathBatchInsert.pyMore file actions 17 lines (12 loc) · 614 Bytes / Copy pathBatchInsert.pyFile metadata and controls17 lines (12 loc) · 614 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 # Copyright 2018 by Teradata Corporation. All rights reserved. # This sample program demonstrates how to insert a batch of rows. import teradatasql with teradatasql.connect ('{"host":"whomooz","user":"guest","password":"please"}') as con: with con.cursor () as cur: cur.execute ("create volatile table voltab (c1 integer, c2 varchar(100)) on commit preserve rows") cur.execute ("insert into voltab (?, ?)", [ [1, "abc"], [2, "def"], [3, "ghi"]]) cur.execute ("select * from voltab order by 1") [ print (row) for row in cur.fetchall () ] |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |