摘要: 查看當前用戶下的表:select * from tabselect * from catselect * from user_tables查看所有的表:select * from all_tablesselect * from dba_tables查看當前用戶下的表的列:select * from ... 阅读全文
posted @ 2014-03-11 14:26 前行者2011 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 输出包含共同元素的变量值#coding:utf-8def main(): a1=1 a2=2 a3=3 for i in xrange(1,4): print eval("a%d" % i) # 或:exec('print a%d' %i)if __name__ == '__main__': ma... 阅读全文
posted @ 2014-03-11 13:55 前行者2011 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 使用 cursor对象的description获取列名printcur.description'''.descriptionThisread-onlyattributeisasequenceof7-itemsequences.Eachofthesesequencescontainsinformati... 阅读全文
posted @ 2014-03-11 12:53 前行者2011 阅读(530) 评论(0) 推荐(0) 编辑