我这有一张表,含有A、B两列,均为字符型,想把B列中等于'nnn'的值用相应A列的值替换,sql语句怎么写?请教

解决方案 »

  1.   


    update 表 set A= B 
      where B ='nnn'我理解的不对?
      

  2.   

    update 表 set A= B  where B ='nnn' 这样的语句运行后,数据是更新了,但提示出错,不明白是什么原因。
      

  3.   

    update 表 set B= A  where B ='nnn' 这样的语句运行后,数据是更新了,但提示出错,不明白是什么原因。
    显示“error greating cursor handl”或者“CommandText dose not reture a result set”
      

  4.   

    命令不能返回结果,你是使用Active还不是Excsql吧。
      

  5.   

    第一种情况用的是bde的Query,第二种情况用的是ado的ADOQuery.