添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

For appeals, questions and feedback about Oracle Forums, please email [email protected] . Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Oracle has updated its online Terms of Use and Community Guidelines and introduced a Community Integrity Policy . These changes document Community specific rules and Oracle’s content moderation practices including use of automated tools, appeals process, and Oracle’s contact details. If you object to any changes, you may request that your account be closed by contacting [email protected] . Your continued use of Oracle Communities means that you are consenting to the updated terms.

ora-01790 Expression must have same datatype

896188 May 1 2012 — edited May 1 2012
select  'sal' as A, sal as B, sal as C, sal as D
(Select sum(sal) sal from emp)
union all
select
  'comm', comm, comm, comm
(Select sum(comm) comm from emp)
union all
select rpad('-',10,'-') ,rpad('-',10,'-'),rpad('-',10,'-'),rpad('-',10,'-') from emp;
Getting following error when running the above query. I know that it is because of rpad('-',10,'-') what is the best way to acheive expected output
I would like to have the result with underline. what is the best way to acheive it.
Expected output:
I am developing report.
I need to have the following oupput.
How can i put underline after the records.
 A              B        C             D        
sal	    29025	  29025	29025
comm	2200    2200	2200
--------------------------------------------------
Jump to Answer