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

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;
主站蜘蛛池模板: 麦盖提县| 新平| 黄冈市| 舟山市| 黔西县| 那坡县| 洛浦县| 贵定县| 怀安县| 江源县| 休宁县| 渭南市| 开鲁县| 龙游县| 溆浦县| 句容市| 调兵山市| 绥江县| 盘锦市| 教育| 宜都市| 福清市| 湘西| 柯坪县| 盐山县| 六枝特区| 昌吉市| 象州县| 循化| 峨眉山市| 浑源县| 建宁县| 大理市| 弋阳县| 郑州市| 天津市| 普陀区| 和顺县| 沈丘县| 厦门市| 恩施市|