如何通过一个值查找到值所在的SQL数据库表
发表于:2024-10-25 作者:千家信息网编辑
千家信息网最后更新 2024年10月25日,declare @cloumns varchar(40)declare @tablename varchar(40)declare @str varchar(40)declare @counts in
千家信息网最后更新 2024年10月25日如何通过一个值查找到值所在的SQL数据库表
declare @cloumns varchar(40)declare @tablename varchar(40)declare @str varchar(40)declare @counts intdeclare @sql nvarchar(2000)declare MyCursor Cursor For Select a.name as Columns, b.name as TableName from syscolumns a,sysobjects b,systypes c where a.id = b.idand b.type = 'U' and a.xtype=c.xtypeand c.name like '%char%'set @str='张三'Open MyCursorFetch next From MyCursor Into @cloumns,@tablenameWhile(@@Fetch_Status = 0)Begin set @sql='select @tmp_counts=count(*) from ' +@tablename+ ' where ' +@cloumns+' = ''' +@str+ ''''execute sp_executesql @sql,N'@tmp_counts int out',@counts out if @counts>0 begin print '表名为:'+@tablename+',字段名为'+@cloumns endFetch next From MyCursor Into @cloumns,@tablenameEndClose MyCursorDeallocate MyCursor
字段
张三
所在
数据
数据库
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
osl网络安全体系
网络技术专业专业特色
创建数据库数据文件的路径
安全牛 网络安全排名
渣打零售银行软件开发部门
2008默认服务器名
软件开发人员的薪水
会员软件开发方案
svn服务器管理规则
金融网络安全宣传漫画
企业网的服务器架设
网络安全周启动仪式直播
软件开发有没有朝9晚5的
麒麟服务器远程桌面
如何看懂设备与服务器通讯报文
工业系统网络安全培训
网络技术上课
湖南网络安全评价服务
数据库软件图标设计
初中校园网络安全演练
课题报告软件开发
酒店无线网络安全吗
十年磨一剑软件开发
管理服务器日志
软件开发与算法设计
考试时数据库查询语句怎么写的快
工信部加强网络安全风险
网二服务器进不去怎么办
聊天软件开发指南
网络安全与执法考题