Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    205

    Unanswered: snap with read only ?

    Hi,

    I could see the "read only option" in creating views in Oracle ?
    Is there anything like creating views with the option "snap with read only" ?
    What does it mean ?

    I came accross the below query :

    create view view_name as select *from test snap with read only

    Is there anything "snap with read only" in views (OR) "snap" is simply an alias for the table test ?

    Please advice,

    Thanks,
    Sam

  2. #2
    Join Date
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1
    It is just an alias, as you can see by changing the DDL to:
    Code:
    create view view_name as select * from test where 1=1 snap with read only
                                                          *
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    The word "snap" doesn't make sense when it isn't right after the table name.

  3. #3
    Join Date
    Mar 2004
    Posts
    205
    great ! Thanks a lot

Posting Permissions

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