语句:
--声明变量DECLARE @idcard nvarchar (50) , @rowid nvarchar (50) --给变量赋值SELECT @idcard = ‘{0}‘, @rowid = ‘{1}‘ SELECT COUNT (1) FROM employeeadjustapply WITH (NOLOCK) WHERE idcard =@idcard AND flagdeleted = 0 AND flagstatus = ‘有效‘ AND flagaudit != - 1 AND AffairType != ‘证明申报‘ AND flagdone = 0 AND rowid [email protected]
原文地址:https://www.cnblogs.com/gygtech/p/9895418.html
时间: 2024-10-10 09:41:00