Initial commit
This commit is contained in:
14
update_table.txt
Normal file
14
update_table.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
請根據以下需求幫我產生一段 Python 程式碼,能夠連線到資料庫並在orders的資料表修改欄位main_course型態為varchar(255)
|
||||
|
||||
資料庫資訊:
|
||||
DB_HOST = mysql.theaken.com
|
||||
DB_PORT = 33306
|
||||
DB_NAME = db_A027
|
||||
DB_USER = A027
|
||||
DB_PASSWORD = E1CelfxqlKoj
|
||||
|
||||
需求:
|
||||
1. 使用 mysql.connector 套件
|
||||
2. 資料表在orders 幫我修改
|
||||
- main_course : 主餐點名稱(varchar(255))
|
||||
3. 執行成功後,印出「資料表修改成功!」。
|
Reference in New Issue
Block a user