• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic