Open Source RDBMS - Seamless, Scalable, Stable and Free

English | 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?

링크 댓글 쓰기 (0) 선택된 답변
질문시간 3년 전
swanotets
263
74 답변들
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

링크 댓글 쓰기 (0)
답변시간 3년 전
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: