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 閱讀(240) 評論(0)  編輯  收藏 所屬分類: Database
          主站蜘蛛池模板: 江口县| 仲巴县| 绿春县| 乌兰浩特市| 开平市| 桐柏县| 游戏| 高要市| 西贡区| 湖北省| 永城市| 比如县| 桃园市| 荣成市| 武宣县| 成武县| 五原县| 新巴尔虎左旗| 平罗县| 乡宁县| 平遥县| 麟游县| 武城县| 新营市| 赤壁市| 云林县| 上饶县| 延边| 沂水县| 定结县| 晋江市| 四会市| 曲松县| 广西| 大丰市| 长兴县| 浦城县| 勃利县| 黑山县| 滦平县| 栾城县|