Create force view
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Create force view

  1. #1
    Join Date
    Nov 2000
    Posts
    416
    Can somebody tell me what's the main difference between create view and create force view
    and does the foloowing command works :

    CREATE FORCE VIEW last_first_vu
    AS SELECT name ll', 'll job "Employee & Position", department_id "Department"
    FROM employee
    ORDER BY name
    GROUP BY department_id;



    Thanks a bunch


  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Using the FORCE keyword will create the view wether the objects exist or not.

    You can't use ORDER BY in a view.
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #3
    Join Date
    Aug 2000
    Posts
    163

    Cool

    Also, FORCE will ensure that the view is created regardless on user's priviliges for the table on which the view is based..

  4. #4
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    [QUOTE][i]Originally posted by marist89 [/i]
    [B]You can't use ORDER BY in a view. [/B][/QUOTE]

    You can as of Oracle 8.1

    HTH,
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

Posting Permissions

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



Click Here to Expand Forum to Full Width