Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
DEFINE p_annual_sal = 60000 DECLARE v_sal NUMBER(9,2) := &p_annual_sal; BEGIN v_sal := v_sal/12; END; /
“定义”这个词有什么用?
DECLARE开始 pl/sql 块 ( DECLARE... BEGIN... END;) 的部分,您在其中声明要在BEGIN... END;部分内部使用的变量。(在 Oracle 服务器上执行)
DECLARE
DECLARE... BEGIN... END;
BEGIN... END;
DEFINE是一种替换值的方法(在 SQL*Plus、SQL dev、...中) - 在发送到服务器之前由客户端工具 (sqlplus) 完成替换。
DEFINE