- MySQL for Python
- Albert Lukaszewski, PhD
- 125字
- 2021-04-13 17:12:29
While the projection specification that we set for ourselves is fulfilled, there is more that can be done on this program to make it more serviceable in a production environment. Some areas that you might look at for further practice are:
- Set the host, database, username, and password from command-line options. You will naturally need to error-check each of them. You will probably want to use the
getpass
module to accept the password in production environments. - Set an option for the column variable and testing whether that column exists in the chosen database.
- Set up error-checking for the results itself.
The world
database has a few other tables besides City
. Can you aggregate their records in Python without using a JOIN
statement?
推薦閱讀
- GIMP 2.6 cookbook
- JBoss AS 5 Development
- Sphinx Search Beginner's Guide
- 從零開始:Flash CS6中文版基礎培訓教程
- 中文版Maya 2014案例教程
- 中文版3ds Max 2016實用教程
- Object/Oriented JavaScript
- Vue 企業開發實戰
- Service Oriented Java Business Integration
- 神奇的中文版Photoshop CC 2017入門書
- CakePHP Application Development
- 中文版3ds Max 2016/VRay效果圖制作技術大全
- 巧用ChatGPT高效搞定Excel數據分析
- 3ds Max 印象 影視粒子特效全解析
- Mobile Web Development