b0a3bed9 by 冯轩

init 5075

1 parent 687ba1a3
1 import pyodbc
2
3 hil_sql = """
4 ALTER TABLE hil_ocr_result ADD bp_ocr nvarchar(max);
5 ALTER TABLE hil_se_ocr_result ADD bp_ocr nvarchar(max);
6 """
7
8 afc_sql = """
9 ALTER TABLE afc_ocr_result ADD bp_ocr nvarchar(max);
10 ALTER TABLE afc_se_ocr_result ADD bp_ocr nvarchar(max);
11 """
12
13 hil_cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};', autocommit=True)
14
15 hil_cursor = hil_cnxn.cursor()
16 hil_cursor.execute(hil_sql)
17
18 hil_cursor.close()
19 hil_cnxn.close()
20
21 afc_cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};', autocommit=True)
22
23 afc_cursor = afc_cnxn.cursor()
24 afc_cursor.execute(afc_sql)
25
26 afc_cursor.close()
27 afc_cnxn.close()
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!