Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. sql/PLSQL :need a expert help on this

sql/PLSQL :need a expert help on this

Scheduled Pinned Locked Moved Database
databaseoracledockerhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ramina sen
    wrote on last edited by
    #1

    I have my inner query is giving me only parent but I want to make use of the result of the inner query again as input till I did not find any child ,so I am using procedure as I have to collect all the parent I get from the inner query and then update the outer query using the inner query result.it is the requirement what I want to achive, e.g update table A set A.a as "xyz" //here I will get t where A.id in ( select A.child_id from A,B,C --I get the child by passing parent as input and again consider the child A.child_id as parent and find the child where A.id= b.id b.name = x and A.prent_id = ? //few join condtion here ) e.g input 1 result 1.1 input 1.1 result 1.1.1 input 1.1.1 result 1.1.1.1 update A where A.id in ('1.1','1.1.1','1.1.1.1')--here I want to use a container and make use of it Thanks for your response

    L 1 Reply Last reply
    0
    • R ramina sen

      I have my inner query is giving me only parent but I want to make use of the result of the inner query again as input till I did not find any child ,so I am using procedure as I have to collect all the parent I get from the inner query and then update the outer query using the inner query result.it is the requirement what I want to achive, e.g update table A set A.a as "xyz" //here I will get t where A.id in ( select A.child_id from A,B,C --I get the child by passing parent as input and again consider the child A.child_id as parent and find the child where A.id= b.id b.name = x and A.prent_id = ? //few join condtion here ) e.g input 1 result 1.1 input 1.1 result 1.1.1 input 1.1.1 result 1.1.1.1 update A where A.id in ('1.1','1.1.1','1.1.1.1')--here I want to use a container and make use of it Thanks for your response

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      ramina sen wrote:

      I am using procedure as I have to collect all the parent I get from the inner query,

      How about putting that into a temporary table and work with that?

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups