我想要改变数据库表中某一列的所有值怎么做啊,大家给点指点

解决方案 »

  1.   

    update yourtable set change_col = yourvalue;
      

  2.   

    update tb set col=0;
    就很普通的一句更新语句
    楼主多看点基础的书
      

  3.   

    update 表名 set 列名=想要的值;
    commit;
      

  4.   

    就是一条更新语句。
    update 表名 set 列名=想要的值;
    commit;
    例如:update yourtable set change_col = yourvalue where col_a='123';
      

  5.   

    update table set col = 值 ;
    commit ;
      

  6.   

    语法是很简单,但是在生产环境中还是需要注意一些问题:1、尽量在系统闲暇的时候来做
    2、如果数据量较大的,分批次来做
    3、检查undo、redo及空间情况