- Learning PostgreSQL 10(Second Edition)
- Salahaldin Juba Andrey Volkov
- 110字
- 2021-07-02 22:42:04
The rename operation
The rename operation is used to alter the attribute name of the resultant relation or to give a specific name to the resultant relation. The rename operation is used to perform the following:
- Remove confusion if two or more relations have attributes with the same name
- Provide user-friendly names for attributes, especially when interfacing with reporting engines
- Provide a convenient way to change the relation definition and still be backward compatible
The AS keyword in SQL is the equivalent of the rename operator in relational algebra. The following SQL example creates a relation with one tuple and one attribute, which is renamed PI:
SELECT 3.14::real AS PI;
推薦閱讀
- LabVIEW虛擬儀器從入門到測控應用130例
- 樂高機器人—槍械武器庫
- The Python Workshop
- 貫通Java Web開發三劍客
- 分析力!專業Excel的制作與分析實用法則
- Dreamweaver CS6精彩網頁制作與網站建設
- FPGA/CPLD應用技術(Verilog語言版)
- Building a BeagleBone Black Super Cluster
- 過程控制系統
- Linux系統下C程序開發詳解
- 基于Proteus的PIC單片機C語言程序設計與仿真
- 計算機硬件技術基礎(第2版)
- WPF專業編程指南
- Raspberry Pi 3 Projects for Java Programmers
- 這樣用Word!