今天发现一个问题,在oracle中我想添加一个额外的列,直接用*,导致出错。
准确如下,注意下划线的部分一定是放在objectsindex.code as Code和objectsindex.name as Name,之后
select
*,
(select wellname from well where guid='431C2B00FC2B40E1A5565FF421B8E41E') as wellname
from objectsindex
这个好像在sql server中可以用*(经验)。