我正在使用 oracle APEX 20.1,并且有一个包含显示货币值的列的报告。由于我来自欧洲,因此我需要在值后面添加货币符号(与您在美国经常看到的典型美元金额格式不同)。
我通过将列的格式掩码更改为“FM999G999G999G999G990D00L”来实现此目的。到目前为止效果很好,但从视觉上看,我更喜欢数字末尾 (D00) 和货币符号 (L) 之间有一个空格。有没有办法在此格式字符串中插入静态空格?
我已经浏览了 Oracle 关于货币格式字符串的文档,但他们似乎没有提到包含始终存在的空格或任意静态字符的选项。
先感谢您。
我有一个问题,我不明白为什么会出现这个错误
这是代码
CREATE TABLE Deposit
( ac_no Int(15),
customer_name Varchar(35),
branch_name Varchar(30),
Amount Int(10,2),
credit_date Date
);
Run Code Online (Sandbox Code Playgroud) 我在oracle apex中有一个插入查询,有时由于不同的原因(例如在数字字段中写入文本),数据没有插入。有没有办法显示错误消息来检查数据是否插入数据库?
我的 Oracle APEX 工作区被锁定。它托管在本地,而不是在云中。
重置密码无济于事,因为该帐户与离职员工的电子邮件地址绑定。
DBA 拥有不同工作区帐户的凭据。
有任何程序可以重置此帐户的密码吗?
在下面的代码中,我无法将日期转换为给定的格式。为什么?
select sysdate,to_char('09/21/1990','ddth "of" mm yyyy') as formated
from emp;
Run Code Online (Sandbox Code Playgroud)
错误信息:
ORA-01722: invalid number
Run Code Online (Sandbox Code Playgroud) Using below, I'm able to change the background color the column in APEX classic report.
#static_id td[headers="TOTAL"]{background: rgb(164, 164, 164) !important;}
Run Code Online (Sandbox Code Playgroud)
How do I change the background color of a row? In this case, I want to change the color of my last row (Totals) Screenshot
现在苦苦挣扎了一个多小时......为什么不编译呢?
身体编译好:
create or replace package body "PKG_CUSTOMER" is
PROCEDURE Create_Customer
( pr_customer_id customer.Customer_id%type,
pr_country customer.country%type,
pr_first_name customer.first_name%type,
pr_last_name customer.last_name%type,
pr_birth_date customer.birth_date%type,
pr_customer_type customer.customer_type%type,
pr_address customer.address%type)
IS
BEGIN
INSERT INTO customer (Customer_ID,Country,First_Name,Last_Name,Birth_Date,Customer_Type,Address)
VALUES(pr_customer_id, pr_country, pr_first_name, pr_last_name, pr_birth_date, pr_customer_type, pr_address);
END Create_Customer;
PROCEDURE Delete_Customer(pr_customer_id customer.customer_id%type) IS
BEGIN
DELETE FROM order_line WHERE fk1_order_id IN (SELECT order_id FROM placed_order WHERE fk1_customer_id = pr_customer_id);
DELETE FROM placed_order WHERE fk1_customer_id = pr_customer_id;
DELETE FROM customer WHERE customer_id = pr_customer_id;
END Delete_Customer;
end "PKG_CUSTOMER";?
Run Code Online (Sandbox Code Playgroud)
但规范不会编译:
create …Run Code Online (Sandbox Code Playgroud) 我已经在oracle application express中创建了一个数据库应用程序,并且不知道如何删除它,因为没有删除按钮可以将其删除
我试图写一个if语句,确定getDeptJSON数组是否包含多个值.如果是,则重定向到其他页面.通过我的研究,它似乎很简单getDept.length > 1,但我还是无法完成这项工作.
我的Javascript代码如下:
$.getJSON("https://apex.oracle.com/pls/apex/mfajertest1/department/"+$x('P2_DEPT_NO').value, function(getDept)
{
console.log(getDept);
if(getDept.length == 0)
{
window.alert("No Department with that ID");
}
else if(getDept.length > 1)
{
apex.navigation.redirect('f?p=71293:11');
}
else
{
$x('P2_DEPT_NAME').readOnly = false;
$x('P2_DEPT_NAME').value=getDept.items[0].dname;
$x('P2_DEPT_NAME').readOnly = true;
$x('P2_DEPT_LOC').readOnly = false;
$x('P2_DEPT_LOC').value=getDept.items[0].loc;
$x('P2_DEPT_LOC').readOnly = true;
$x('P2_DEPT_NO').readOnly = true;
}
});
Run Code Online (Sandbox Code Playgroud)
getDept JSON数组包含以下信息:
{
"next": {
"$ref": "https://apex.oracle.com/pls/apex/mfajertest1/department/%7Bid%7D?page=1"
},
"items": [
{
"deptno": 10,
"dname": "accounting",
"loc": "madison"
},
{
"deptno": 20,
"dname": "Finance",
"loc": "Milwaukee"
},
{
"deptno": …Run Code Online (Sandbox Code Playgroud) 我想取current date,week number,first date in the week和last date in the week.它下面的SQL语句正在工作,但是当我在Oracle Apex中运行时,我得到了ORA-01843: not a valid month
declare
date_value char;
week_value pls_integer;
start_date_value char;
end_date_value char;
begin
SELECT
TO_CHAR(TRUNC(TO_DATE(CURRENT_DATE,'MM/DD/YYYY')),'DD.MM.YYYY')
, TO_NUMBER(TO_CHAR(TO_DATE(CURRENT_DATE,'MM/DD/YYYY'),'WW'))
, TO_CHAR(TRUNC(TO_DATE(CURRENT_DATE,'MM/DD/YYYY'), 'IW'),'DD.MM.YYYY')
, TO_CHAR(NEXT_DAY(TRUNC(TO_DATE(CURRENT_DATE,'MM/DD/YYYY'),'IW'),'SUNDAY'),'DD.MM.YYYY')
INTO
date_value
, week_value
, start_date_value
, end_date_value
FROM DUAL;
htp.p('<< '||'Week'|| week_value ||' >> '|| start_date_value ||' - '|| end_date_value);
end;
Run Code Online (Sandbox Code Playgroud)
也尝试使用sysdate并且仅在SQL中有效但在PL/SQL(Oracle Apex)页面中抛出相同的异常.提前致谢.
oracle-apex ×10
oracle ×7
sql ×4
javascript ×2
plsql ×2
apex ×1
arrays ×1
json ×1
package ×1
procedure ×1