update 表 set actione='1'

解决方案 »

  1.   

    我這個表中已經有數據了,只不過新增加了一個actione字段。
    就是說每條數據都新加了一個actione字段,我想每一條數據的actione都為“1”
      

  2.   


    那看你的actione是什么数据类型的了,字符串类型的就按照上面的 数字类型的按照下面的update 表 set actione=1
      

  3.   

    update 表 set actione='1'
      

  4.   

    alter table tbname add  cloname varchar(20) default(1) not null
      

  5.   

    update 表 set actione=1
      

  6.   

    alter table a add actione char(1) default '1' not null修改表A
    新增字段actione
    字段类型char 长度1
    默认值'1'
    不允许空