Quantcast
Channel: PL/SQL – Jeff Kemp on Oracle
Browsing all 30 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Send SMS, MMS and Voice messages from Oracle PL/SQL

If you need to send almost any message to almost any phone from your Oracle database, and you want to use straight PL/SQL, you may want to consider using my Clicksend API. SMS (Short Message Service)...

View Article


RETURNING RECORD INTO

This is an idea for an enhancement to the PL/SQL syntax. If I have the following declaration: DECLARE in_record mytable%ROWTYPE; out_record mytable%ROWTYPE; BEGIN I can do this: INSERT INTO mytable...

View Article


Code can be scary when you simplify it

Disclaimer: I’m not posting to make me look better, we’ve all written code that we’re later ashamed of, and I’m no different! This is some code I discovered buried in a system some time ago. I’ve kept...

View Article

Image may be NSFW.
Clik here to view.

“Smart quotes” showing as “?” in emails

When some of my users were using my system to send emails, they’d often copy-and-paste their messages from their favourite word processor, but when my system sent the emails they’d have question marks...

View Article

A random string of digits

715175039885776956103287888080 I needed to generate a random string with an exact length consisting of numeric digits, that I could send in an SMS to a user as a temporary account “pin”....

View Article


Image may be NSFW.
Clik here to view.

TAPI Generator MkII

The last few weeks I’ve made quite a few improvements to my TAPI generator which I thought I’d share. I’ve also added an Apex API generator which generates code suitable for interfacing between simple...

View Article

Image may be NSFW.
Clik here to view.

DBMS_MVIEW.explain_mview with no MV_CAPABILITIES_TABLE

Need to run DBMS_MVIEW.explain_mview in APEX SQL Workshop, but don’t have the MV_CAPABILITIES_TABLE? You’ll get this error: ORA-30377: table ORDS_PUBLIC_USER.MV_CAPABILITIES_TABLE not found You don’t...

View Article

Short circuit evaluation and the great Unknown

One of the nice things about PL/SQL is that it implements short circuit evaluation, a performance enhancement which takes advantage of the fact that an expression using logical AND or OR does not...

View Article


Some collection methods I’d like to see added to PL/SQL

In building a code generator I found the need to write a number of helper methods for doing basic modifications of arrays that are indexed by integer – such as appending one array onto another,...

View Article


Pretty Print JSON in PL/SQL

I have been working with some code that uses JSON, sometimes fairly large documents of the stuff, and it’s often necessary to send this to the debug log (e.g. DBMS_OUTPUT) for debugging; however, the...

View Article
Browsing all 30 articles
Browse latest View live