快速SQL Server问题 [英] Quick SQL Server question
本文介绍了快速SQL Server问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以向我解释这在SQL中的作用吗?
print(512&511)-数字的值不重要,可以是任意两个.
Could someone explain to me what this does in SQL:
print (512 & 511) - values of the numbers not important, could be any two.
推荐答案
这是按位运算.检查一下.
http://msdn.microsoft.com/en-us/library/ms174965.aspx [ ^ ]
It is bitwise operation. Check this.
http://msdn.microsoft.com/en-us/library/ms174965.aspx[^]
AFAIK,这将基于512和511之间的按位&(and)操作打印整数.
AFAIK, this will print an integer based on a bitwise &(and) operation between 512 and 511.
请看下面的链接.
按位运算符(Transact-SQL)
& (按位与)(Transact-SQL)
Have a look at below links.
Bitwise Operators (Transact-SQL)
& (Bitwise AND) (Transact-SQL)
这篇关于快速SQL Server问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文