Python 连接 Oracle 示例(二)

2014-11-24 08:20:29 · 作者: · 浏览: 7
!


print all:([(1, 13865999999L), (2, 13888888888L)])



print by row:


(1, 13865999999L)


(2, 13888888888L)



This is Fetone!


(1, 13865999999L)


(2, 13888888888L)



select with parameter:


[(2, 13888888888L)]


[(2, 13888888888L)]



Python 类型和Oracle 类型的对应关系:



During the fetch stage, basic Oracle data types get mapped into their Python equivalents. cx_Oracle maintains a separate set of data types that helps in this transition. The Oracle - cx_Oracle - Python mappings are: