select a.name,a.id,a.password.a.tel,b.colum1,b.colum2
from 表1 a, 表 b
where a.name=b.name and a.id=b.id

解决方案 »

  1.   

    CREATE PROC GetAll
    AS 
    select a.name,a.id,a.password.a.tel,b.colum1,b.colum2
    from 表1 a, 表 b
    where a.name=b.name and a.id=b.id
    GO
      

  2.   

    你说的是视图create view yourview as select a.name,a.id,a.password.a.tel,b.colum1,b.colum2
    from 表1 a, 表 b
    where a.name=b.name and a.id=b.id
      

  3.   

    1、查询CREATE的帮助
    2、学学MSATER下的系统工程SP_
      

  4.   

    CREATE PROC GetAll (参数名 类型,......)
    AS 
    select a.name,a.id,a.password.a.tel,b.colum1,b.colum2
    from 表1 a, 表 b
    where a.name=b.name and a.id=b.id 
    GO