zoukankan      html  css  js  c++  java
  • sql server获取表的所有字段

    select name+"," from syscolumns where object_name(id)='equipment'
    'equipment'为表名.

    输出格式改为文本

    结果如下:
                                                                                                                                     
    ---------------------------------------------------------------------------------------------------------------------------------
    activestatus,
    address,
    adviceboard,
    aspset_key,
    assettag,
    attachment,
    attachment_des,
    attribset,
    bovvalue,
    businessunit,
    city,
    comments,
    computer_type,
    contactequipment,
    contractcoverag,
    country,
    custfield0,
    custfield1,
    custfield2,
    custfield3,
    custfield4,
    custfield5,
    custfield6,
    custfield7,
    custfield8,
    custfield9,
    custfieldsavail,
    custlabel0,
    custlabel1,
    custlabel2,
    custlabel3,
    custlabel4,
    custlabel5,
    custlabel6,
    custlabel7,
    custlabel8,
    custlabel9,
    customerequipment,
    customerid,
    datecreated,
    datemodified,
    debtornr,
    deliverdate,
    deliverynumber,
    deliveryposition,
    details,
    division,
    equip_warranty,
    ethernet_id,
    fsident,
    glaccount,
    harddisksize,
    haswarranty,
    history,
    hwcontract,
    hwcoverage,
    installdate,
    ipaddress,
    IsLock,
    linktype,
    location,
    maintenance_level,
    makemodel,
    nodename,
    notes_key,
    ordernumber,
    orderposition,
    ordertype,
    orgequipment,
    os_type,
    os_version,
    perlewbz,
    pkey,
    port_number,
    priority,
    prod_warranty,
    productequipment,
    project_id,
    purchasedate,
    pwarranty_expires,
    ramsize,
    sap_info,
    satok,
    serialnumber,
    serregequipment,
    servername,
    slaavailfactor,
    sna_address,
    state,
    type,
    validdate,
    vendor,
    warranty_expires,
    warrantycoverag,
    workgroupequipm,
    zip,

    (所影响的行数为 96 行)

  • 相关阅读:
    [UVA1149]Dominating Patterns
    [HDOJ1358]Period
    [HDOJ3065]病毒侵袭持续中
    【RQNOJ356】myt的格斗
    【rqnoj39】 饮食问题
    【rqnoj28】[Stupid]愚蠢的宠物
    【rqnoj378】 约会计划
    layer弹框在实际项目中的一些应用
    layer弹框在实际项目中的一些应用
    移动开发之css3实现背景几种渐变效果
  • 原文地址:https://www.cnblogs.com/huang/p/444517.html
Copyright © 2011-2022 走看看