国产真人无码免费视频_亚洲人成在线影院_久天啪天天久久98久久_熟妇又大又爽免费视频 激情五月亚洲综合图区,午夜热门精品一区二区三区,国产综合日产在线播放,国产亚洲日韩欧美在线

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ò)手機站二維碼掃描手機瀏覽