无法正常指定@temp.id = dddd.aaa_id

解决方案 »

  1.   

    declare @temp table
    ( id int ,
      value numeric(10),
    )Insert into @temp select id,value from aaa where bbb = cccdelete @temp where @temp.id = dddd.aaa_id and dddd.eee = ffff--->這個語句不對
      

  2.   

    declare @temp(id int,value varchar(10))  --少写了字段类型Insert into @temp select id,value from aaa where bbb = cccdelete a from @temp a,dddd where a.id = dddd.aaa_id and dddd.eee = ffff
      

  3.   

    delete @temp from @temp as a,dddd as b where a.id = b.aaa_id and b.eee = ffff
      

  4.   

    请问zjcxc(邹建)像这类比较复杂的SQL应该看什么书比较好