python經過MySQLdb操縱mysql

鏈接數據庫:python conn = MySQLdb.connect(IP, USER, PASSWORD, DBNAME) 建立表:web sql = """CREATE TABLE EMPLOYEE ( FIRST_NAME CHAR(20) NOT NULL, LAST_NAME CHAR(20), AGE INT, SEX CHAR(1), INCOME FLOAT )""" curs
相關文章
相關標籤/搜索