1.Null数据的处理
    1)检索出null值
              select * from 表 where xx is null
  
    2)null值替换
     select
         name,
         isnull ( cast (字段 as varchar(20)) , '空')
     from 表名
 
2.数据类型转换
    1)Cast
        --'101'可以用表中字段来替换
        select cast('101' as varchar(20))
  
    2)Convert
        select convert(varchar(20),100)

相关文章:

  • 2022-12-23
  • 2021-07-20
  • 2021-06-14
  • 2021-07-07
  • 2022-12-23
  • 2021-12-05
  • 2021-12-05
猜你喜欢
  • 2021-06-09
  • 2022-02-08
  • 2021-05-31
  • 2021-09-19
  • 2022-02-06
  • 2022-02-22
  • 2021-12-05
相关资源
相似解决方案