惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Vulnerabilities – Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Proofpoint News Feed
G
GRAHAM CLULEY
P
Privacy International News Feed
The Hacker News
The Hacker News
Forbes - Security
Forbes - Security
U
Unit 42
N
News and Events Feed by Topic
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Cisco Blogs
A
About on SuperTechFans
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
D
Docker
I
Intezer
Spread Privacy
Spread Privacy
The Last Watchdog
The Last Watchdog
V2EX - 技术
V2EX - 技术
S
Security @ Cisco Blogs
F
Full Disclosure
S
Secure Thoughts
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
W
WeLiveSecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Project Zero
Project Zero
Recorded Future
Recorded Future
Cyberwarzone
Cyberwarzone
S
Security Affairs
AWS News Blog
AWS News Blog
H
Help Net Security
The GitHub Blog
The GitHub Blog
Hacker News: Ask HN
Hacker News: Ask HN
Vercel News
Vercel News
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Register - Security
The Register - Security
S
Schneier on Security
F
Fortinet All Blogs
C
CERT Recently Published Vulnerability Notes
L
LINUX DO - 最新话题
T
Tor Project blog
T
The Exploit Database - CXSecurity.com
MongoDB | Blog
MongoDB | Blog
Webroot Blog
Webroot Blog

博客园 - edrp.cn

日期函数——来源网络,方便查阅 生成所有货品条码(货品颜色定义的颜色才有条码) SQL SERVER 更新某个表的某个字段的值为自动编号的SQL 用D的老哥儿们,你们怎么处理移动端的?直接上Java?C#.net?要是没有好的方案,加Q群交流,有个低代码框架不错,移动端,PC端,小程序,H5,都可以,觉得很适合D转过来 是几个意思呢 SQL Server利用ROW_NUMBER()函数,指定多个字段查出重复保留一条,删除多余记录 截至目前最便宜的Delphi客户端框架OneFastClient——899元,不是美元,是人民币,关键还是全源码 sql server 2008 R2在查询分析器执行查询某个表时一直在运行没有返回结果的原因 批量插入数据字典的方法,做个记录吧 sql server 查询所有表名,字段名,字段类型 加载包失败的解决方法 ABFramework数据字典设置下拉列项找不到自己定义的,需要指定字段提示作为区分不同连接 sql server 多字段查询重复记录并删除 Delphi 开源免费的三层中间件 OneDelphi 高手是这样排查问题的——两层使用存储过程批量生成单据和查询分析器生成单据都正确,使用三层方式却少了三条记录 组合批量更新sql 方法 比while not FDQuery.eof do更高效率的读取数据 设置数据的LoadTables中有货品表,或者是清空里面的内容,不指定表 AB 中预警显示窗体中双击打开对应单据窗体
修改所有Detail Table 字段为Not in 'D' Name
edrp.cn · 2023-07-05 · via 博客园 - edrp.cn

--修改所有Detail Table 字段为Not in 'D' Name
declare @TableName varchar(50),@FielName varchar(50),@TableID varchar(20),@FieldID varchar(20),
@Table_Description varchar(200),@Field_Description varchar(200),
@SQL varchar(1000)

Declare selectTableNmae cursor for
SELECT o.name, c.name fieldname
FROM syscolumns c
INNER JOIN sysobjects o ON c.id = o.id
WHERE o.type = 'U' and LEFT(o.Name,2)='T_'
and RIGHT(o.Name,6)='Detail'
and SUBSTRING(o.Name, 3, len(o.Name)-8)=SUBSTRING(c.name, 2, len(c.name)-3)
and left(c.name,1)='D' and RIGHT(c.name,2)='ID'
ORDER BY o.name desc, c.name

Open selectTableNmae
select @TableName='',@FielName=''
Fetch next from selectTableNmae into @TableName,@FielName
While @@Fetch_Status = 0
begin
--print @TableName
--print @FielName
--EXEC sp_rename '表名.旧字段名', '新字段名', 'COLUMN'
select @SQL='EXEC sp_rename '''+@TableName+'.'+@FielName+''','''+ SUBSTRING(@FielName, 2, len(@FielName)-1)+''',''COLUMN'''
--print @SQL
Exec(@SQL)
Fetch next from selectTableNmae into @TableName,@FielName
end
Close selectTableNmae
DeAllocate selectTableNmae