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

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;
主站蜘蛛池模板: 南澳县| 三门峡市| 仙游县| 马山县| 泸定县| 玉林市| 逊克县| 沙河市| 扎赉特旗| 康定县| 霸州市| 台南市| 青铜峡市| 宜良县| 禹州市| 德阳市| 馆陶县| 常宁市| 丰宁| 广水市| 吴旗县| 射阳县| 太白县| 大同县| 新津县| 湖北省| 石河子市| 连州市| 青海省| 塘沽区| 石台县| 温州市| 太和县| 封开县| 正安县| 剑阁县| 昭觉县| 红安县| 长丰县| 邯郸县| 衡东县|