我的sql应该怎么改进?
select
sl.FixedSalary
,0 as FixedCompensate
,sl.FixedSalary+cast(FixedCompensate as NUMBER(9,2)) as GetFixedSalary
from
SalaryLevel sl
select
sl.FixedSalary
,0 as FixedCompensate
,sl.FixedSalary+cast(FixedCompensate as NUMBER(9,2)) as GetFixedSalary
from
SalaryLevel sl
解决方案 »
- 关于oracle内行数据 显示成 列数据
- 由于oracle数据库达到最大连接数。sqlplus登陆会报错。但是要获取当前的连接数。
- ORACLE导入导出问题...火急!!!
- proc 的程序能不能执行sql command命令?
- informix导出的数据和数据库模式如何导入oracle中去??
- 临时表的问题,delphi+oracle,请看正文,谢谢!
- 用OLEDB如何连接ORACLE啊?
- 请问ORACLE脚本中的上级目录如何写?
- 请问为什么create table bbb as select * from aaa ,aaa上面的缺省值还有索引都掉了呢?
- 辞旧迎新,散分咯!
- oracle怎么使用sqlcode/sqlerrm
- dbms_random包,在普通的plsql中可以使用,但是在我的package中引用就不行
sl.FixedSalary
,0 as FixedCompensate
,sl.FixedSalary+to_number(FixedCompensate) as GetFixedSalary
from
SalaryLevel sl
FixedCompensate 为任意数字
TO_CHAR()
''
""
结合一下----
如果是varchar类型那就用select field1||field2 可行