在SQL Server中,我可以非常方便地进行这样的查询:
SELECT phone_number, last_known_location, *
FROM missing_female_pilots
WHERE last_name = 'Earhart'
我如何在Oracle中做类似的事情?
答案 0 :(得分:4)
您可以使用表别名:
SELECT t.phone_number, t.last_known_location, t.*
FROM missing_female_pilots t WHERE t.last_name = 'Earhart'
或者只是在*
之前添加表名:
SELECT phone_number, last_known_location, missing_female_pilots.*
FROM missing_female_pilots WHERE last_name = 'Earhart'