SQL 选择布尔选项
抱歉,标题含糊不清,但我不确定如何用一句话来解释我想做什么。
序言: 选择布尔列的 SQL 语法如下:
SELECT MyBooleanColumn FROM MyTableThatHasABooleanColumn
这会产生以下结果:
MyBooleanColumn
===============
1
1
1
0
1
...
问题: 有没有办法获得以下结果?
MyBooleanColumn
===============
True
True
True
False
True
...
Sorry for the vague title, but I'm not exactly sure how I can explain what I want to do in a sentence.
Preamble: The SQL syntax for selecting columns that are Boolean is as follows:
SELECT MyBooleanColumn FROM MyTableThatHasABooleanColumn
This produces the following result:
MyBooleanColumn
===============
1
1
1
0
1
...
Question: Is there a way to get the following result instead?
MyBooleanColumn
===============
True
True
True
False
True
...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,这样做:
Yes, do it like this: