摘要:
先移转,再查询SELECT case when charindex('12',s) =0 then 0 else length(s)-charindex(reverse('12'),reverse(s)) end AS lastIndexOf, s FROM t;利用存储过程,一个个找:set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOCREATE FUNCTI... 阅读全文
摘要:
alter trigger material_triggeron tb04_material for insertasbegin declare @materialId int select @materialId=i.material_id from inserted i declare @G_StatisticsId int exec @G_StatisticsId = sp_GetUniqu... 阅读全文