有两个数据库。并非一个产品的。
我已将数据库A数据中的需要表导出至B。A中的字段userid   和 password 是我需要导入到B中的请问用什么命令?

解决方案 »

  1.   

    如果有关联字段IDupdate b
    set b.userid = a.userid
        b.password = a.password
    from a,b
    where a.id = b.id如果没有.
    insert into b(userid,password) select userid,password from a where ........
      

  2.   

    insert into customer(custid,fmoney) select UserID,UserMoney from user where userid>0  说USER附近有语法错误
      

  3.   

    对不起,突然想起USER是关健:) 加上[]即可:)谢谢
      

  4.   

    insert into A(Col1,Col2...)
    select Col1,Col2,...
    from Ba