欧美性影院在线,欧美黄色性生活网站,免费一级欧美大片免费观看,欧美特一级黄色性爱免费观看 无码中文字幕久久不卡_亚洲无码二级黄色网站_国产精品福利自产拍在线观看_亚洲性网在线观看

asp對表access表字段的操作

2014/11/8 1:52:071351 閱讀

    刪除字段
    dim cmd 
    set cmd=server.createobject ("adodb.command") 
    set cmd.activeconnection =conn 
    Sqlj="alter table product drop column "&zd&""
    cmd.commandtext =sqlj
    cmd.execute sqlj 
    


    增加字段
    dim cmd 
    set cmd=server.createobject ("adodb.command") 
    set cmd.activeconnection =conn 
    Sqlj="alter table 表名 add column 字段 varchar(20)"
    cmd.commandtext =sqlj
    cmd.execute sqlj 
    

    檢測字段是否存在:
    sqlbb="select   *   from   表名"
    Set   RSbb=Conn.Execute(sqlbb)
    for   i   =   0   to   RSbb.Fields.Count   -   1
    if   RSbb.Fields(i).Name="字段"   then
    '處理方式
    Exit For
    end   if
    Next
    rsbb.close
    set rsbb=nothing
    

    下一條:PHPCMSv9專題靜態(tài)路徑修改

    上一條:vb asp截取ip前三段

棗莊西橋網(wǎng)絡(luò)微信小程序微信小程序

棗莊西橋網(wǎng)絡(luò)手機站二維碼掃描手機瀏覽