DECLARE
TEAM_ID NUMBER := &INPUT;
CURSOR C_WORKER IS
SELECT FIRST_NAME, LAST_NAME
FROM EMPLOYEES
WHERE DEPARTMENT_ID = TEAM_ID;
V_LAST_NAME EMPLOYEES.LAST_NAME%TYPE;
我在Windows7中的Windows Server 2008上輸入此命令連接Oracle數據庫: sqlplus 'user/[email protected](DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=hostname.network)(Port=1521))(CONNECT_DATA=(SID=remote_SID)))'
但它提出這個錯誤: er
我正在嘗試打印查詢結果。這裏是Oracle SQL腳本: set linesize 32767;
set pagesize 0;
set newpage 0;
set space 0;
set echo off;
set feedback off;
set verify off;
set heading off;
set sqlprompt '';
set trimspool o
在運行自己的package.procedure的內部的兩個DELETE聲明: DELETE FROM ENT_PLANT_RELATIVE WHERE CHILD_ID = plant_id;
DELETE FROM ENT_PLANT_ITEM WHERE PLANT_ID = plant_id;
...我收到關於第二DELETE完整性約束違約(第一工作正常): SQL> call P.D