Id name  pwd
1   aa    ss
2   bb    dd
3   cc    bb 
如何使用 delete 语句删除一列数据

解决方案 »

  1.   

    用update不就行了?
    update [Table] set pwd=null
      

  2.   

    delete删除行.update tb
      set 列=null
      

  3.   

    alter table 表名
    drop column 列名
      

  4.   

    一列 ??
    update ta
    set 
    pwd = null
      

  5.   

    删除一列为什么不用update呢?
    假设表名为aa,将pwd列清空
    update aa
    set pwd=null
      

  6.   

    删除行,用DELETE
    修改列,用UPDATE
      

  7.   

    用update就可以了。
    或者直接alter table xxx drop columns xxxx
      

  8.   

    删除行使用delete from t
    删除列使用alter table 表名 drop column 列名,此列就不错在了你的应该是更新列update t set pwd=null