zoukankan      html  css  js  c++  java
  • sql 添加删除字段



    sql 添加删除字段

    use dsoa
    if exists (select * from syscolumns where id =object_id('Calendar_Detail'and name='work_Yq')
    ALTER TABLE [Calendar_Detail ] DROP COLUMN [work_Yq]

    if exists (select * from syscolumns where id =object_id('Calendar_Detail'and name='work_Wc')
    ALTER TABLE [Calendar_Detail ] DROP COLUMN [work_Wc]

    if exists (select * from syscolumns where id =object_id('Calendar_Detail'and name='Work_Flag')
    ALTER TABLE [Calendar_Detail ] DROP COLUMN [Work_Flag]

    if exists (select * from syscolumns where id =object_id('Calendar_Detail'and name='Work_Remark')
    ALTER TABLE [Calendar_Detail ] DROP COLUMN [Work_Remark]
    alter   table   Calendar_Detail   
      
    add    work_Yq   nvarchar(200),  
               work_Wc  
    nvarchar(200),
    Work_Flag 
    int,
    Work_Remark 
    nvarchar(200)


  • 相关阅读:
    4月21日Java作业
    5.14 Java作业
    第十周java作业
    4月30号作业
    第七周上机
    4.9Java
    通宵看剧有感
    error: pathspec 'xxxxxxxxx' did not match any file(s) known to git
    markdown格式测试
    博客申请通过啦
  • 原文地址:https://www.cnblogs.com/gwazy/p/824345.html
Copyright © 2011-2022 走看看