posts - 431,  comments - 344,  trackbacks - 0

          #encoding=utf-8
          import MySQLdb
          import cx_Oracle

          orcon = cx_Oracle.connect("username", "password", "172.29.131.25:1521/orcl")
          orcursor = orcon.cursor()
          orcursor.execute("select columnname from tablename ")
          row=orcursor.fetchall()
          for r in row:
              for cell in r:
                  print cell
          orcursor.close()
          orcon.close()

          posted on 2009-07-28 09:43 周銳 閱讀(508) 評論(0)  編輯  收藏 所屬分類: Python
          主站蜘蛛池模板: 清徐县| 荣成市| 河南省| 林甸县| 天津市| 扶沟县| 隆尧县| 太湖县| 武平县| 沙洋县| 康乐县| 桂林市| 凉城县| 西贡区| 肃北| 广河县| 都安| 轮台县| 江安县| 会泽县| 抚州市| 塔河县| 大荔县| 广州市| 绍兴县| 太保市| 仙桃市| 客服| 盐边县| 桦甸市| 扎囊县| 杭锦后旗| 天祝| 白山市| 洪湖市| 从化市| 定边县| 贺兰县| 沙田区| 张家川| 迁安市|