摘要:
下面是一个示例查询,它将返回带有序号的表名和注释: 使用 sys.tables 和 sys.extended_properties 表: SELECT ROW_NUMBER() OVER (ORDER BY t.name) AS 序号, t.name AS 表名, p.value AS 注释 FRO 阅读全文
摘要:
今天使用 SQL server DATEDIFF()函数,发现查询出的结果 总是不对, 原 where 查询条件为: and datediff(dd,'2023-05-01',fdate) >= 0 and datediff(dd,fdate,'2023-05-31') <= 0 经过 排查 > D 阅读全文