首页 > 其他分享 >获取字段名

获取字段名

时间:2023-08-15 10:00:37浏览次数:27  
标签:varchar max colname 获取 id 字段名

1 ALTER function [dbo].[获取字段名](@字段名 varchar(max))
2 returns varchar(max)
3 as
4 begin
5 declare @colname varchar(max)
6 select @colname=coalesce(@colname +',','') +b.name from sysobjects a join syscolumns b on a.id=b.id where a.id=object_id(@字段名) order by b.colorder
7 return @colname
8 end

 

标签:varchar,max,colname,获取,id,字段名
From: https://www.cnblogs.com/ljtao/p/17630545.html

相关文章

  • C# 获取网页上指定的元素
    直接上代码//usingSystem;//usingSystem.Net.Http;//usingSystem.Threading.Tasks;//usingHtmlAgilityPack;//usingNewtonsoft.Json;//classProgram//{//staticasyncTaskMain(string[]args)//{//usingvarhttpClient=newHttpClient();......
  • 联通光猫获取超级管理员密码,联通宽带逻辑ID 获取
    首先使用普通账户登录然后访问这个链接http://192.168.1.1/backpresettings.conf保存backpresettings.conf 打开文件就可以看到cuadmin也就是超级管理员的密码了由于我不小心重置了光猫然后一直注册让输入逻辑ID找客服大半天电话没有用,突然想到我备份的配置文......
  • Geant4的PrimaryGenerator中获取世界大小
     PrimaryGeneratorAction.cc#include"G4LogicalVolumeStore.hh"……voidPrimaryGeneratorAction::GeneratePrimaries(G4Event*anEvent){G4LogicalVolume*worldLV=G4LogicalVolumeStore::GetInstance()->GetVolume("World");G4Box*worldB......
  • C# 获取网络API接口中的数据(1)
    控制台案例:usingSystem;usingSystem.Net.Http;usingSystem.Threading.Tasks;usingNewtonsoft.Json;usingNewtonsoft.Json.Linq;usingSystem.Data;usingSystem.Xml.Linq;usingSystem.Net;namespaceConsoleApp{classProgram{staticvoidM......
  • 高德解析城市的分析,根据高德的经纬度获取城市cityCode
    高德解析城市的分析,根据高德的经纬度获取城市cityCodehttp://restapi.amap.com/v3/geocode/regeo?output=json&location=110.517039,18.817948&key=替换成自己的高德KEY&extensions=base1.高德返回城市(正常情况)江苏省南京市玄武区"city":"南京市","province":"江苏省",&qu......
  • 各个时区对应的时差表 及 python中时区获取方式(支持夏令时)
    1Africa/Abidjan+00:002Africa/Accra+00:003Africa/Addis_Ababa+03:004Africa/Algiers+01:005Africa/Asmara+03:006Africa/Bamako+00:007Africa/Bangui+01:008Africa/Banjul+00:009Africa/Bissau+00:0010Africa......
  • Python 优雅的使用 subprocess.Popen 获取实时输出,以及中止 subprocess
    #-*-coding:utf-8-*-importshleximportosimportsignalimporttimeimportthreadingfromsubprocessimportPopen,PIPEdefrun_command(command):process=Popen(shlex.split(command),stdout=PIPE)st=time.time()whileTrue:ou......
  • 抓包、反编译和数据获取的过程及工具网址
    抓包、反编译和数据获取是网络安全工程师在进行应用程序分析和漏洞挖掘时常用的技术。以下是这个过程的详细解释以及所涉及的工具和它们的优缺点。抓包:抓包是指截获并记录网络通信数据流的过程。抓包工具能够在网络上截取传输的数据包,分析其中的信息,用于网络分析、网络故障排除、......
  • SpringBoot有几种获取Request对象的方法?
    HttpServletRequest简称Request,它是一个ServletAPI提供的对象,用于获取客户端发起的HTTP请求信息。例如:获取请求参数、获取请求头、获取Session会话信息、获取请求的IP地址等信息。那么问题来了,在SpringBoot中,获取Request对象的方法有哪些?常见的获取Request对......
  • Python-嵌套字典获取特定的键值对
    简单示例:test_data=[{"name":"路飞","age":18,"from":"Donghaisea"},{"name":"索隆","age":18,"from":"Xihaisea"}]forhzintest_data:#遍历......