摘要:
Sql中CASE语法的常见案例 案例1: 1 case when field1 is null then field2 2 else field2end as 'field' 案例2:可用于统计 1 case when field IS NOT NULL then 1 else 0 end as q 阅读全文
posted @ 2020-05-20 11:21
小熊公子
阅读(391)
评论(0)
推荐(0)
摘要:
Sql中日期的应用 SQL Server使用convert来取得datetime日期数据,以下实例包含各种日期格式的转换 语句及查询结果: 1 Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM 2 Select CONVER 阅读全文
posted @ 2020-05-20 10:45
小熊公子
阅读(155)
评论(0)
推荐(0)
摘要:
Sql中isnull()函数的应用 ISNULL函数:使用指定的替换值替换 NULL。 【语法】 1 ISNULL ( check_expression , replacement_value ) 【参数说明】 (1)check_expression 将被检查是否为 NULL的表达式。 如果不为NU 阅读全文
posted @ 2020-05-20 10:24
小熊公子
阅读(1324)
评论(0)
推荐(0)

浙公网安备 33010602011771号