ORACLE execute immediate / PLSQL

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Informatie
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 37
Joined: Fri Sep 09, 2011 10:04 am
Location: Netherlands

ORACLE execute immediate / PLSQL

Post by Informatie » Wed Nov 14, 2012 7:37 pm

I want to execute plsql package (is an procedure) and it doesn't return a value.
I crashes LIVECODE completly.
BUt the question is can this be done.

This is what I try to do

put "begin callvaluescustomer; end" into tsql
revExecuteSQL databaseid, tsql

Further I have to wait very long.

The packing runs in in oracle.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: ORACLE execute immediate / PLSQL

Post by Mark » Thu Nov 15, 2012 1:10 am

Hi,

You can't run multiple SQL lines from within LiveCode. This means that you can't have a SQL script starting with "begin" and finishing with "end". From within LiveCode, you can execute only one line at a time. You need a PHP script or a Perl CGI to make this possible.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply

Return to “Databases”