with check option的使用
在with check option的选项下,可以总结为
1. update,要保证数据update之后能被视图查询出来,也就是要符合where的条件
2. insert,保证insert的数据能被视图查询出来
3. delete,有无 with check option都一样
4. 对于没有where字句的视图,使用with check option是多余的
在with check option的选项下,可以总结为
1. update,要保证数据update之后能被视图查询出来,也就是要符合where的条件
2. insert,保证insert的数据能被视图查询出来
3. delete,有无 with check option都一样
4. 对于没有where字句的视图,使用with check option是多余的