我在SQL2000里 用3张表建立了一个视图
以前没有接触过。
希望各位前辈们 给点例子 比如增改删那样的
或者给点资料。

解决方案 »

  1.   

    create table Users
    (
    id int not null,
    UserName varchar(20) not null,
    UserPassword varchar(20) not null
    )Use book
    Create view au_book
    (id,UserName,UserPassword)
    AS
    Select *
    From Usersinsert au_book(UserName,UserPassword)
    values('2','2')update au_book
    set UserName='3dd'
    where id=2delete  from au_book
    where id=1
      

  2.   

    视图是一个虚拟表,其内容由查询定义。同真实的表一样,视图包含一系列带有名称的列和行数据。视图的优点:
           A.视图能简化用户的操作
           B.视图机制可以使用户以不同的方式查询同一数据
           C.视图对数据库重构提供了一定程度的逻辑独立性
           D.视图可以对机密的数据提供安全保护
    要修改、删除和添加操作则需要使用存储过程。
      

  3.   

    http://hi.baidu.com/xymclone/blog/item/77500de7aa0fa52db83820fa.html