DbMsSQL
to serve this class that I would use that has a few examples
This example does not require dynamic SQL using the text of the statement is known at the time of compilation., but it illustrates the basic concept underlying the whole. The DEMO
procedure deletes all employees of the EMP
table whose salary is higher than the compensation that you specify when you run DEMO
.
Demo CREATE OR REPLACE PROCEDURE (salary in NUMBER) AS
cursor_name INTEGER;
rows_processed INTEGER;
BEGIN
cursor_name: = dbms_sql.open_cursor;
DBMS_SQL. PARSE (other cases, ' DELETE FROM emp sal WHERE >: x',)
DBMS_SQL. NATIVE);
DBMS_SQL. Bind_variable (all other cases ': x', salary);
rows_processed: = DBMS_SQL. Execute (cursor_name);
DBMS_SQL. CLOSE_CURSOR (cursor_name);
EXCEPTION
WHILE OTHERS THEN
DBMS_SQL. CLOSE_CURSOR (cursor_name);
Tags: Database
Similar Questions
Maybe you are looking for
-
iMac restarts again and again. Help! 10.11.3 OSX
Just last week, I've updated my iMac 21 "OSX 10.11.3 via the App Store. For the first days it was working fine, but now it suddenly stops and restarts by itself, sometimes showing the kernel panic screen, others restarts and after a few minutes, even
-
In the remote desktop printing 2 or 3 pages continuously. with the USB printer. It isn't printing first page only 2nd and 3rd pages. But in the task of the printer local special impression is get queue. It's like appear and disappear. Please help me
-
I downloaded driver boost, but found no drivers.
-
Driver for Lexmark Z611 for Windows 7 operating system
I'm not ready to part with my trusty Lexmark Z611 (2005 model) that works very well on my Mac but I can't find a driver to allow my wife Windows 7 computer to run it. Any help?
-
connection series to AIR-LP1131AG-A-k9
Hi all, I am trying to connect to our aironet through serial connection, but there is no output on the terminal. Help, please.