create table test000(id int identity(1,1),col nvarchar(10))
insert into test000 select 'A' union all select 'A' union all select 'A' union all select 'A' union all select 'A' union all
select 'B' union all 
select 'C' 
update test000
set col='CC'
from test000
where id>5select * from test000update test000
set col='AA'
from test000
where id<5select * from test000drop table test000

解决方案 »

  1.   

    upadte T_SMG_POST_LIST
    SET f_smg_level = 2
    WHERE F_ID < 10030
      

  2.   

    --问题应该不是这句上,这句没有问题upadte T_SMG_POST_LIST
    SET f_smg_level = 2
    WHERE (F_ID < 10030)
      

  3.   

    除了 update 拼写错误之外
      

  4.   

    返回的错误是"子查询返回的值多于己于1个,当子查询跟随在=、!=、>、<、>=、<=之后或子查询用做表达式时,这种情况是不允许的"
    请问各位同行这是什么原因啊??????!!!!
    ------------------應該不是上面的update 語句有問題 吧
    upadte T_SMG_POST_LIST
    SET f_smg_level = 2
    WHERE (F_ID < 10030)
    是沒有錯的
      

  5.   

    呵呵,难道楼主真把update写成upadte了?
      

  6.   

    你大概是在access里用吧?
    把整个语句贴出来.
      

  7.   

    我试了写成upadte
    系统报 行 2: '=' の近くに無効な構文があります。
    这个错  哈哈
      

  8.   

    update 我没有写错只是这里才写错的