Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Linuxmania Linuxmania is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 392
Rep Power: 14
Linuxmania mempunyai hidup yang Normal
Default [ask]execute immediate select into variable ORACLE

gan ane ada masalah begini

pertama2 ane masukin dynamic syntak ke variable
Code:

v_statement:='select ('||v_gens_id||'.currval) from dual';

abis itu kan di eksekusi
Code:

execute immediate v_statement;

trus ane lihat isi v_statement ituh... dalemnya ini gan(udah bener syntaknya yang ini yang pengen di eksekusi)
Code:

select (GEN_RESELLER_ID.nextval)into v_generator from dual

nah tapi knapa ada error yang begini?

ORA-00905: missing keyword

ORA-06512: at "ROOT.GET_PREFIX_ID", line 52






tulung gan...sedikit urgent mentok ane...



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 07:58 PM.


no new posts