Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望我的 sql 查询将投影返回为table.column而不仅仅是列。
例如
select deal.deal_id from deal where deal.deal_id= '1';
它返回的是
DEAL_ID ------- 1
我想要的是:
DEAL.DEAL_ID ------------ 1
在不使用AS或 Oracle 报价运算符的情况下,我怎样才能做到这一点?
这是你给别名的方式:
SELECT deal.deal_id "deal.deal_id" FROM deal WHERE deal.deal_id= '1';
这不可能自动完成。
你可以试试这个:-
select deal_id "DEAL.DEAL_ID" from deal where deal.deal_id= '1';