上一页 1 ··· 24 25 26 27 28
摘要: import MySQLdb #注意大小写!!#建立和数据库系统的连接conn = MySQLdb.connect(host='localhost',user='root',passwd='smile',db='test')#获取操作游标cursor = conn.cursor()#执行SQL,创建一个数据库.cursor.execute("""create database python""")cursor.execute('create table test& 阅读全文
posted @ 2011-09-15 21:50 Let it be! 阅读(286) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28