EXIT WHEN FLAG=1/*give some exit criteria here .You wrote update statement which was incorrect*/;
--update table set counter=1 where counter is NULL;
-- LOOP until condition is met
END LOOP;
More Related Contents:
- Can we use a parameter in a pl sql subprogram other than in where clause
- DBMS_OUTPUT.PUT_LINE not printing
- Create an Oracle function that returns a table
- Place to store PL/SQL block [closed]
- Splitting string into multiple rows in Oracle
- What is the string concatenation operator in Oracle?
- How to pass List from java to Oracle Procedure?
- PL/SQL – Use “List” Variable in Where In Clause
- How can you tell if a value is not numeric in Oracle?
- passing table and column name dynamically using bind variables
- SQL error “ORA-01722: invalid number”
- Create an Excel File (.xlsx) using PL/SQL
- How to send email using Oracle 10 g Forms
- SQL Fiddle Output Error
- oracle PL/SQL how to calculate range ip for IPv6 cidr
- Different CURRENT_TIMESTAMP and SYSDATE in oracle
- How to split array list into equal parts?
- How to return multiple rows from the stored procedure? (Oracle PL/SQL)
- Execute multiple queries in single Oracle command in C#
- Oracle: how to INSERT if a row doesn’t exist
- Issue when comparing result of to_char(myDate, ‘DAY’) to a string
- Functions vs procedures in Oracle
- In Oracle, is it possible to INSERT or UPDATE a record through a view?
- How to see refcursor result/output in Oracle SQL Developer? [duplicate]
- How to handle optional parameters in SQL query?
- How to use Alias in Where clause? [duplicate]
- How to check if a column exists before adding it to an existing table in PL/SQL?
- BEGIN – END block atomic transactions in PL/SQL
- How to handle a query with special characters / (forward slash) and \ (backslash)
- Using bind variables with dynamic SELECT INTO clause in PL/SQL