sql server NEWID() 踩坑记

记录下踩过的坑...

该语句查询的结果集不一致

SELECT * FROM dbo.new_phonecodeBase WHERE  statecode=0 and new_phonecodeId <> NEWID() and new_phoneproductcode='5650730'

 

建议更换用法

SELECT * FROM dbo.new_phonecodeBase WHERE  statecode=0 and new_phonecodeId <> ‘00000000-0000-0000-0000-000000000000‘ and new_phoneproductcode='5650730'

 

上一篇:阿里云高性能计算HPC产品使用流程(华北2区域)


下一篇:Netty参数配置表