數據庫編程實例

判斷數據庫指定表是否存在 import MySQLdb db = raw_input('請輸入數據庫名:') table_name=raw_input("請輸入表名:") conn =MySQLdb.Connect(user='root',passwd='redhat',host='localhost',db=db,port=3306) cur=conn.cursor() cur.execute(
相關文章
相關標籤/搜索