Let the storm money come!

随笔分类 -  DB

摘要:--删除某几列相同的,重复数据deletefromProcess.SSC_HqItemConfigWHEREIDNOTIN(selectmin(ID)fromProcess.SSC_HqItemConfiggroupbyCompanyCode,FlowCode,ActivityType,BusinessCodehavingcount(CompanyCode)>1)ANDexists(--匹配原来某些列 select * from ( SELECTCompanyCode,FlowCode,ActivityType,BusinessCodeFROMProcess.SSC_HqItemConf 阅读全文
posted @ 2011-04-13 16:33 精密~顽石 阅读(321) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--select*fromgrouptest,(selectcode,MAX(createtime)asttfromdbo.GroupTestgroupbycode)mainwheremain.code=... 阅读全文
posted @ 2010-07-01 22:47 精密~顽石 阅读(152) 评论(0) 推荐(0) 编辑
摘要:给SQL Server的表和字段加上注释类似于Oracle的comment。/comment on table UserInfo is '用户信息'/comment on column UserInfo."ID" is '用户编号'在SQL Server中,是这样实现的:EXECUTE sp_addextendedproperty N'MS_Description', N'教师开课表', N'us... 阅读全文
posted @ 2010-06-02 09:39 精密~顽石 阅读(7487) 评论(1) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--setANSI_NULLSONsetQUOTED_IDENTIFIERONGO--=============================================--Author:<A... 阅读全文
posted @ 2010-04-07 20:31 精密~顽石 阅读(996) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--setANSI_NULLSONsetQUOTED_IDENTIFIERONGO--=============================================--Author: --Cr... 阅读全文
posted @ 2010-03-18 18:42 精密~顽石 阅读(253) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/----在目标库上执行以下语句,需要改库地址以及连接用的,用户名、密码execsp_addlinkedserver@server='192.168.0.135,1027'--源数据库goexecsp_ad... 阅读全文
posted @ 2010-01-28 13:27 精密~顽石 阅读(313) 评论(0) 推荐(0) 编辑
摘要:主要是有些表里面数据根本不存在时。此时,就必须用连接,连接出空的数据,但是整体还是有数据。如果是单纯的条件连接,那么另一个表条件不成立时,整体的数据是不会出来的。 阅读全文
posted @ 2010-01-14 13:10 精密~顽石 阅读(187) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
在通往地狱的路上,加班能使你更快到达。
点击右上角即可分享
微信分享提示