Open Taitanguo opened 6 years ago
cur.execute("SELECT BranchName FROM RunManager2.dbo.Branch WHERE BranchName = ? AND Official = ?", ["near", 1]) branch_id = cur.fetchone() print(branch_id.get('BranchName')) //this is not working but print(branch_id[0]) is working
I'm running on a python 3.4 environment
cur.execute("SELECT BranchName FROM RunManager2.dbo.Branch WHERE BranchName = ? AND Official = ?", ["near", 1]) branch_id = cur.fetchone() print(branch_id.get('BranchName')) //this is not working but print(branch_id[0]) is working
I'm running on a python 3.4 environment