Jcat
          寵辱不驚,閑看庭前花開花落~~
          posts - 173,comments - 67,trackbacks - 0

          Pseudo columns

          A pseudo column is an item of data which does not belong in any particular table but which can be treated as if it did. Any SELECT list of columns can include these pseudo columns.
          SYSDATE         current date and time
          
          ROWNUM          sequence number assigned to retrieved rows
          
          ROWID           unique identifier for a row
          
          UID             number associated with a user
          
          USER            userid of current user
          

          The DUAL table

          ORACLE provides a "dummy" table called DUAL containing one column and one row. It is useful for selecting miscellaneous information from ORACLE.

          Some uses for DUAL

          • Display today's date

            SELECT SYSDATE FROM dual;

          • Display the value of 356 divided by 17, to three decimal places

            SELECT ROUND(356 / 17, 3) FROM dual;

          • Display the current user name

            SELECT USER FROM dual;

          posted on 2006-08-18 08:50 Jcat 閱讀(236) 評論(0)  編輯  收藏 所屬分類: Database
          主站蜘蛛池模板: 咸丰县| 广南县| 日土县| 周宁县| 论坛| 青阳县| 新宾| 桃园县| 安远县| 上蔡县| 色达县| 隆林| 冕宁县| 公安县| 灌云县| 盐山县| 洞口县| 永安市| 巴楚县| 怀宁县| 天水市| 武城县| 高雄县| 黑河市| 凤冈县| 花莲县| 常熟市| 沅陵县| 石屏县| 民勤县| 彩票| 怀安县| 临海市| 防城港市| 内丘县| 荥阳市| 双城市| 五河县| 鄂尔多斯市| 凤凰县| 白城市|