对于我的数据库课程,我得到了一些sql练习。其中一个是结果:
WHO EARNS WHAT
_____________________
MR MARTIN EARNS 1250 A MONTH
现在我选择了正确的数据,如:
SELECT 'MR ' || ENAME || ' EARNS ' || SAL || ' A MONTH ' FROM EMP WHERE ENAME = 'MARTIN';
但我找不到的是如何将标题置于查询之上?有人可以帮我吗?
答案 0 :(得分:0)
AS "WHO EARNS WHAT"
SELECT 'MR ' || ENAME || ' EARNS ' || SAL || ' A MONTH '
AS "WHO EARNS WHAT"
FROM EMP WHERE ENAME = 'MARTIN';