• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create dynamic sql?

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
i am trying and still unable to figure out how to go about creating a dynamic query..
i have a before insert trigger on table "One"
in that trigger depending upon "categoryId"
i have to update different tables. How do i use DBMS_SQL package in my trigger to do this?
for eg:
depending upon categoryID, my dynamic query would be as follows:
update catgeoryId_master set status='SCHEDULED' where userid=variable;
here both the table name i.e categoryID_master and userid will be dynamic
how do i accomplish this?
This is an SOS.. reply soon
Thanx in advance..
Oh! wat would i do if not for Javaranch??
Chhaya
 
reply
    Bookmark Topic Watch Topic
  • New Topic