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

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;
主站蜘蛛池模板: 望谟县| 牡丹江市| 新丰县| 建德市| 夹江县| 印江| 莒南县| 西华县| 惠水县| 江达县| 石林| 香港| 石屏县| 铁岭县| 东山县| 合水县| 平罗县| 曲水县| 榆社县| 巩留县| 成安县| 三原县| 金乡县| 兴和县| 镇安县| 保靖县| 朔州市| 梁河县| 邵武市| 沁源县| 大足县| 鹤壁市| 陇南市| 靖边县| 阜城县| 增城市| 江油市| 满城县| 江源县| 寿光市| 德江县|