1. 程式人生 > >python Day 4 :員工信息表程序

python Day 4 :員工信息表程序

python 筆記

員工信息表程序,實現增刪改查操作:


可進行模糊查詢,語法至少支持下面3種:

  select name,age from staff_table where age > 22

  select * from staff_table where dept = "IT"

select * from staff_table where enroll_date like "2013"

查到的信息,打印後,最後面還要顯示查到的條數

可創建新員工紀錄,以phone做唯一鍵,staff_id需自增

可刪除指定員工信息紀錄,輸入員工id,即可刪除

可修改員工信息,語法如下:

  UPDATE staff_table SET dept="Market" where dept = "IT"

註意:以上需求,要充分使用函數,請盡你的最大限度來減少重復代碼


詳細描述參考http://www.cnblogs.com/alex3714/articles/5740985.html


python Day 4 :員工信息表程序