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

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;
主站蜘蛛池模板: 育儿| 元氏县| 抚顺县| 昭通市| 保定市| 云安县| 宜昌市| 日照市| 邹城市| 施秉县| 正安县| 龙州县| 山东省| 锡林郭勒盟| 皋兰县| 涞源县| 黄大仙区| 阿克陶县| 兴仁县| 吴江市| 内黄县| 张家川| 昭觉县| 林州市| 关岭| 四川省| 桓台县| 湄潭县| 塔河县| 稻城县| 汾阳市| 娄底市| 东乌| 虹口区| 遵义市| 平原县| 翁源县| 民勤县| 奉贤区| 昌邑市| 新邵县|