Chinaunix首页 | 论坛 | 博客
  • 博客访问: 153979
  • 博文数量: 33
  • 博客积分: 2057
  • 博客等级: 大尉
  • 技术积分: 430
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-19 16:37
文章分类
文章存档

2013年(2)

2012年(23)

2011年(8)

分类: Python/Ruby

2013-02-27 15:30:16


点击(此处)折叠或打开

  1. from conn import conn,c
  2. from draw import *
  3. from config import *
  4. import pyExcelerator

  5. sql = "SELECT DISTINCT km FROM %s WHERE station != '李官' and type = '变形' " %T_SENSOR
  6. count = c.execute(sql)

  7. print u'一共有%s行记录' %count

  8. result=c.fetchone()
  9. print result

  10. results=c.fetchmany(5)
  11. for r in results: print r

  12. print '=='*10
  13. c.scroll(0,mode='absolute')

  14. kms = c.fetchall()

阅读(913) | 评论(0) | 转发(0) |
0

上一篇:PHPlot曲线图

下一篇:没有了

给主人留下些什么吧!~~