为什么我的连接在 SQL 中不起作用?

问题描述

我正在处理的表格

enter image description here

现在如果我写这个

select salary,salary>95000 as paid,'It is '||paid||' that '||last_name||' is highly paid' 
from professors

我得到的输出是没有支付的列,即使我已经创建了一个具有该名称的列。

enter image description here

如果我运行这个查询

select salary,'It is '||salary>95000||' that '||last_name||' is highly paid' 
from professors

我得到的输出是这个,第 3 列我无法理解那个真实来自哪里。

enter image description here

这个查询虽然给了我所需的输出

select salary,'It is '||(salary>95000)||' that '||last_name||' is highly paid' 
from professors

输出

enter image description here

我只是想请人帮助我了解上述 2 个查询究竟出了什么问题。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)