简体   繁体   中英

Oracle SQL Developer - format query output

I've got this simple query:

select e.empname.title, e.empname.firstname, e.empname.surname 
from employee e
where e.empname.firstName like '%on%' and e.empaddress.city like 'New York';

I'm using objects, and im trying to format the columns on the query results, so it shows 'Title', 'First name' and 'Surname'instead of the types ive created i've tried adding the following above the query, and a few other variations with no luck.

COLUMN E.EMPNAME.TITLE    HEADING 'Title'

Any guidance would be appreciated!

select e.empname.title as Title , e.empname.firstname as Firstname, e.empname.surname as Surname
from employee e
where e.empname.firstName like '%on%' and e.empaddress.city like 'New York';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM