Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register


0
(click on this box to dismiss)

Execute dynamic SQL commands in Cubrid

Is it possible to dynamically prepare a string with an sql statement with parameter placeholders and execute it later with different sets of parameters?

link comment (0) accepted answer
asked 3 years ago
swanotets
263
74 Answers
1
You can achieve this by combining execute statement with using clause. So something as such:

EXECUTE stmt2 USING '12345abcdeabcde',6,5;

EXECUTE stmt2 USING '12345abcdeabcde',6,10;

 

Check this link out for more information: http://www.cubrid.org/manual/831/en/EXECUTE%20Statement

link comment (0)
answered 3 years ago
picador_jr
292
tagged




You are either using a very old browser or a browser that is not supported.
In order to browse cubrid.org you need to have one of the following browsers:



Internet Explorer: Mozilla Firefox: Google Chrome: