作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
目前,我遇到了“/”问题。例如,我想从表中选择客户身份证号码和护照。但实际上idcardno和passport与idcardno在同一列。
根据我的要求,我希望查询为“Idcardno/Passport”,例如:选择 idcardno 作为 idcardno/Passport,* 来自客户
但在谷歌上找不到任何帮助,这一行也总是出错。请问这样的编程可以吗?
有人可以帮我解决这个问题吗?我们将非常感谢您的回答。
非常感谢。
最佳答案
如果您想将 idcardno
别名为 idcardno/Passport
,请使用 "
封装别名
select
idcardno as "idcardno/Passport",
c.*
from customer c
关于java - 如何在 PostgreSQL 中将客户 idcardno 和护照从 select as 查询中查询为 idcardno/passport?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41693684/
我是一名优秀的程序员,十分优秀!