有两个表temp1和temp2,现在要在temp1添加一字段,要求该字段与temp2表中某一字段相同.就好像复制temp2的某一字段到temp1!!!

解决方案 »

  1.   

    给个实例出来嘛,添加的那个字段要跟temp2表中某一字段的属性一样,相当于复制temp2字的一个字段到temp1
      

  2.   

    先在TEMP1中增加这样的字段,把TEMP2这个字段的值插入
      

  3.   

    Alter table Add 字段名
    不知道这样对么
      

  4.   

    alter table add(con type);
      

  5.   

    alter table 表 modify add 字段 类型
      

  6.   

    不好意思,上面的语句给错了。应该是这样:alter table 表 add 字段 类型