官术网_书友最值得收藏!

Summary

It almost goes without saying that querying and data retrieval is the bread and butter of database programming. In this chapter, we have covered the formation of a MySQL query and how to pass it from Python. We also saw how to use user-defined variables to allow dynamic formation of statements rather than pre-configured queries. In order to adjust our program flow, we also saw how to determine the characteristics of a database and its tables from within Python. Finally, we programmed a command-line search utility that returns data of the user's choice in two different formats.

In the next chapter, we will look at the flipside of the SELECT command, INSERT.

主站蜘蛛池模板: 泊头市| 错那县| 乌鲁木齐县| 稻城县| 宁河县| 额济纳旗| 布尔津县| 广宁县| 长岛县| 五大连池市| 寻乌县| 峡江县| 德惠市| 双辽市| 黄骅市| 元谋县| 通许县| 兰坪| 镇安县| 犍为县| 太湖县| 庆安县| 遂昌县| 城固县| 泗水县| 乌苏市| 邓州市| 侯马市| 汝城县| 大城县| 枣阳市| 南和县| 威海市| 金昌市| 石景山区| 驻马店市| 客服| 翁牛特旗| 耒阳市| 壤塘县| 阿克苏市|