insert into table
select id,'b' from table where name='a'

解决方案 »

  1.   

    沒用過這樣的插入語句,
    但出錯啊:
    錯誤類型:
    Microsoft JET Database Engine (0x80040E14)
    INSERT INTO 陳述式 ('b') 中缺少目標欄位名稱。
    /Web/Edit.asp, line 45
    ================好象沒指定b要加在哪個字段,應該正確的怎么寫?
      

  2.   

    insert into table(id,name)
    select c.id,'b' from table as c
    where name='a'肯定行!
      

  3.   

    insert into table(id,name)
    select a.id,'b' from table as a
    where name='a'
      

  4.   

    真的行,謝謝nicebee(小蜜蜂)