select * into 表名 from  ua_holdauth  left outer join  ua_account  on ua_holdauth.cacc_id=ua_account.cacc_id
       left  outer join ua_user on ua_holdauth.cuser_id=ua_user.cuser_id
       left  outer join ua_auth on ua_holdauth.cauth_id=ua_auth.cauth_id where ua_holdauth.cacc_id='009' and ua_holdauth.iyear='2005'

解决方案 »

  1.   

    老兄,不行,运行时报以下错误.服务器: 消息 2705,级别 16,状态 3,行 1
    各表中的列名必须唯一。在表 'bak' 中多次指定了列名 'cAcc_Id'。
      

  2.   

    to楼主:
    你那个查询里总共就只有四张表:ua_holdauth   ua_account  ua_user 和ua_auth 
    怎么可能会显示"在表 'bak' 中多次指定了列名 'cAcc_Id'"
    应该是其他问题的啦. 
    fancyf兄的方法应该没问题的啦.
      

  3.   

    请问select * into 表名 from 这条语句应怎样用?Copy表
    也就是批量復制表裡的內容