转换数字需要一些帮助:
select to_char(a, '99D99')
, to_char(a, '90D99')
from
(
select 50 a from dual
union
select 50.57 from dual
union
select 5.57 from dual
union
select 0.35 from dual
union
select 0.4 from dual
Run Code Online (Sandbox Code Playgroud)
将导致:
1 ,35 0,35
2 ,40 0,40
3 5,57 5,57
4 50,00 50,00
5 50,57 50,57
Run Code Online (Sandbox Code Playgroud)
但是如何使我的输出像:
我需要0在逗号之前,但不是之后.
在APEX Restful Service中,如果我选择sql查询的GET方法,则所有参数都放在url字符串中。这意味着最终用户可以自己更改参数...所以我应该在pl / sql块中使用POST。但是如何从该方法返回数据?在GET中,我有类似的查询
SELECT *
FROM table
WHERE id = :PARAM
Run Code Online (Sandbox Code Playgroud)
在POST中变成了???
DECLARE
BEGIN
SELECT *
FROM table
WHERE id = :PARAM
END;
Run Code Online (Sandbox Code Playgroud)
我找不到关于文档的任何有用信息,仅关于GET方法。