Results 1 to 15 of 29

Thread: SQL*Plus

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Location
    hatfield
    Posts
    16
    I have the following table;

    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    RDATE DATE
    ROOM_NO VARCHAR2(2)
    SESSION_B VARCHAR2(9)
    BEVERAGE VARCHAR2(10)
    QTY NUMBER(3)
    TIME DATE


    If i wanted to do a select statement, to show all entries in the table, with the Time displaying as an actual time
    would I have to put all of the fields into the select statement?

    I've used the following:

    select rdate, room_no, session_b, beverage, qty, to_char(time, 'hh24:mi') from BEVERAGE_BOOKING;

    Is there any other way of performing this operation?
    Last edited by sangeetailor; 03-01-2004 at 10:43 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •