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

Summary

PostgreSQL provides advanced features that allow you to avoid writing a program to solve common problems when dealing with data structures and SQL statements. Thanks to the RETURNING predicate, it is possible for you to get back automatically generated data, such as an incremental key. Conflict resolution allows us to perform a kind of 'tuple merging' when dealing with INSERT and UPDATE statements against the same tuples, but one of its most powerful features is surely the Common Table Expression, which not only allows us to re-write complex queries by splitting them into more readable pieces, but also allows us to perform statement pipelining and recurse over a result set.

Knowing these features will allow you to interact with a PostgreSQL cluster efficiently and solve common problems in your day-to-day use quickly and easily.

In Chapter 3, The PL/pgSQL Language, we will look at how to implement complex constructs by means of the default procedural language built in in PostgreSQL: PL/pgSQL.

主站蜘蛛池模板: 启东市| 雷州市| 阿勒泰市| 叙永县| 陕西省| 凯里市| 鄂州市| 佛山市| 绥江县| 淮安市| 江孜县| 苏尼特右旗| 二连浩特市| 拉孜县| 本溪市| 年辖:市辖区| 会东县| 潜山县| 澜沧| 陆河县| 永吉县| 临高县| 曲麻莱县| 正镶白旗| 临泽县| 嫩江县| 广宁县| 武隆县| 潼关县| 江城| 额尔古纳市| 灵石县| 都昌县| 利川市| 广水市| 顺昌县| 绥棱县| 津南区| 尉犁县| 武鸣县| 建宁县|