PLSQL corner

PLSQL loop inexed by letters

But this is not portable across character sets. I think a better solution is to declare up front your index variables like this:

That way if you change character sets (e.g. to utf8) you are not reliant on a collating sequence that doesn’t match your char set.

Unique session ID

The UNIQUE_SESSION_ID function returns a character string unique to the session among all sessions currently connected to the database. The return string can be up to 24 bytes in length. Multiple calls to the function from the same session will always return the same string. The program header follows:

Notes UNIQUE_SESSION_ID is functionally identical Read more about Unique session ID[…]

Narzędzia to projektowania baz danych

GNU-GPL OpenSystemArchitect Power*Architect Druid ERW Dia XML to DDL (python scripts) Graphiz – I believe I’ve read of people using it to reverse engineer from DDL Multiple versions/licenses (each has a “free” and a “not-free” version) DBVisualizer Toad Not-free Microsoft Visio – (If you already have it, Read more about Narzędzia to projektowania baz danych[…]

Oracle PL/SQL: Bulk Processing with BULK COLLECT and FORALL

Bulk Processing with BULK COLLECT and FORALL· BULK COLLECT: SELECT statements that retrieve multiple rows with a single fetch, improving the speed of data retrieval· FORALL: INSERTs, UPDATEs, and DELETEs that use collections to change multiple rows of data very quicklyPL/SQL is so tightly integrated with the SQL language, you might be wondering why special Read more about Oracle PL/SQL: Bulk Processing with BULK COLLECT and FORALL[…]