摘要:
SELECT CONVERT(INT,value) FROM STRING_SPLIT(CONVERT(VARCHAR(MAX),'1,2,3,4,5,6,7,8,9'),',') 阅读全文
摘要:
1、加索引,只能针对百万左右数据量 2、分表,每个月的数据归档到一个新表按月保存,查询时使用union连查 阅读全文
摘要:
SELECT * FROM (SELECT tt.*, ROWNUM AS rowno FROM ( SELECT t.vin_mt ,dbxx FROM {PdaCommonAppService.PREFIX}v_pj_dygx t WHERE vin_jj like '%{input.vin_j 阅读全文
摘要:
select rand(CHECKSUM(NEWID())) 阅读全文
摘要:
windows平台访问远程服务器共享目录下的access数据库文件 public class SharedDirectoryManager { // logon types private const int Logon32_Logon_Interactive = 2; private const 阅读全文
摘要:
SELECT TableName = CASE WHEN A.colorder = 1 THEN D.name ELSE '' END, PrimaryKey = CASE WHEN EXISTS ( SELECT 1 FROM sysobjects WHERE xtype = 'PK' AND p 阅读全文
摘要:
SELECT TableName = CASE WHEN A.colorder = 1 THEN D.name ELSE '' END, PrimaryKey = CASE WHEN EXISTS ( SELECT 1 FROM sysobjects WHERE xtype = 'PK' AND p 阅读全文
摘要:
1、拥有一颗充满激情,勇于奋斗的上进心。切勿安于现状,人类社会不断发展,就个人而言不进则退,要不断的学习,才能跟上社会发展的步伐。 多了解或接触新鲜事物(如试药、充场)。 多看看外面的世界,正所谓读万卷书,行万里路。 尝试站在未来的角度想象未来世界中可能存在的东西(科技,商业,事件等),(如:假设今 阅读全文
摘要:
单主键 with T as( SELECT ROW_NUMBER() over (PARTITION By 工件号 order by 检测时间 desc) as rowid,* FROM 检测表 ) delete from T where id not in( select id from T wh 阅读全文
摘要:
select msd.*,sc.* FROM MachinesShiftDetails as msd OUTER APPLY (select top 1 * from ShiftCalendars where MachineShiftDetailId = msd.Id) as sc 阅读全文