The document creates two views (VUE1 and VUE2) on the modeles table filtered to records with a puissance of '5CH'. It then inserts a new record into the VUE1 view and checks that it has propagated to the underlying modeles table. A sequence called sequence1 is created and used to populate the primary key of a new record inserted into the modeles table. An index is created on the vehicules table and synonyms are created for the modeles table.
The document creates two views (VUE1 and VUE2) on the modeles table filtered to records with a puissance of '5CH'. It then inserts a new record into the VUE1 view and checks that it has propagated to the underlying modeles table. A sequence called sequence1 is created and used to populate the primary key of a new record inserted into the modeles table. An index is created on the vehicules table and synonyms are created for the modeles table.
The document creates two views (VUE1 and VUE2) on the modeles table filtered to records with a puissance of '5CH'. It then inserts a new record into the VUE1 view and checks that it has propagated to the underlying modeles table. A sequence called sequence1 is created and used to populate the primary key of a new record inserted into the modeles table. An index is created on the vehicules table and synonyms are created for the modeles table.
where puissance like '5CH') with check option; select * from VUE1; insert into VUE1 values(to_char(sequence1.nextval), 'a003', 'audi', '5CH'); create or replace view VUE2 as (select REF_model,marque from modeles where puissance like '5CH') with check option; select owner, view_name from dba_views where UPPER(owner) like 'SYSTEM'; ----------------------------------------------- create sequence sequence1 increment by 1 start with 1; insert into modeles values (to_char(sequence1.nextval), 'a003','audi','5CH'); select sequence1.nextval from dual; select sequence1.currval from dual; select sequence_owner, sequence_name from dba_sequences ; ALTER SEQUENCE sequence1 MAXVALUE 1500; ------ ------- CREATE INDEX vehicule_ix ON vehicules (IMMATRIULATION, ref_model,prix_demande);
select index_name,index_type from user_indexes;
---- CREATE or replace SYNONYM mod for modeles; select owner , synonym_name from all_synonyms where UPPER(owner) like 'SYSTEM';