摘要:
IF @FBeginDate IS NULL BEGIN SET @FBeginDate=GETDATE() END IF @FEndDate IS NULL BEGIN SET @FEndDate=GETDATE() END IF ISNULL(@pageSize,0)=0 --每页数量 BEGI 阅读全文
摘要:
alter FUNCTION FU_DecimalDigits ( @FNum NVARCHAR(100) --值 ) RETURNS nvarchar(100) AS /*作用:处理数值,保留有效小数位数 */ begin while right(@FNum,1) in ('0','.') beg 阅读全文
摘要:
SELECT 表名 = case when a.colorder=1 then d.name else '' end, 表说明 = case when a.colorder=1 then isnull(f.value,'') else '' end, 字段序号 = a.colorder, 字段名 = 阅读全文
摘要:
--查看死锁SELECT t1.resource_type [资源锁定类型], DB_NAME(resource_database_id) AS 数据库名, t1.resource_associated_entity_id 锁定对象, t1.request_mode AS 等待者请求的锁定模式, t 阅读全文