TSQL 中的竖线/竖线字符是什么意思? [英] What does the pipe/veritcal bar character mean in TSQL?

查看:43
本文介绍了TSQL 中的竖线/竖线字符是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google-fu 在这方面让我失望.谁能简要解释一下下面的语句会做什么?:

Google-fu is failing me on this one. Can anyone briefly explain what the following statement would do?:

UPDATE
    message WITH (ROWLOCK)
SET
    message = message | 2

我在触发器中发现了这个,但我找不到解释什么的文档 |字符在这样的语句中就是这样.

I found this in a trigger, and I am unable to find docs explaining what the | character does in a statement like this.

推荐答案

那是一个按位 OR

http://msdn.microsoft.com/en-us/library/ms176122.aspx

这篇关于TSQL 中的竖线/竖线字符是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆