摘要:
查看當前用戶下的表:select * from tabselect * from catselect * from user_tables查看所有的表:select * from all_tablesselect * from dba_tables查看當前用戶下的表的列:select * from ... 阅读全文
摘要:
输出包含共同元素的变量值#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... 阅读全文
摘要:
使用 cursor对象的description获取列名printcur.description'''.descriptionThisread-onlyattributeisasequenceof7-itemsequences.Eachofthesesequencescontainsinformati... 阅读全文