|
- select * from Locations;
-
- Select Location_Id, City, Country_Id
- From Locations l Join Countries C
- Using(Country_Id )
- Join Regions Using(Region_Id)
- Where Region_Name = 'Europe';
-
-
-
- Insert Into ( Select l.Location_Id, l.City, l.Country_Id
- From Locations L Join Countries C
- on (l.Country_Id =c.Country_Id)
- Join Regions Using(Region_Id)
- Where Region_Name = 'Europe' )
- VALUES (3300, 'Cardiff', 'UK');
- commit;
- select * from Locations;
复制代码
- Create Or Replace View V3 As
- (Select l.Location_Id, l.City, l.Country_Id
- From Locations L
- Where l.Country_Id= 'DE')
- With Check Option;
-
- Insert Into V3 Values ( 3800, 'XXX','CN') ;
-
复制代码
SQL Error: ORA-01402: view WITH CHECK OPTION where-clause violation
01402. 00000 - "view WITH CHECK OPTION where-clause violation"
*Cause:
*Action:
|
|