Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Need help with SQL

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I have a requirement where I am supposed to obtain a string of data from Cobol,extract values from the string, make records from these and pass it back to asp.
Now the issue is that I do not want to create a table or a temp global table to store the variables I create from the string. I want to store them into records and pass all these records into a cursor and pass the cursor back to the calling method.
Is it possible to put records into a cursor without the creation of new tables?
Is there an alternative data structure apart from cursors in which I can store all these records and pass it back to the calling method without the need for creating new tables?

Any help on this would be appreciated

Thanks,
Karthik
 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it will require you to write a procedure in the RDBMS's language (pl/sql, t-sql, etc.)... but yes, you can do this.
 
Paul Campbell
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i didn't completely answer your question... the procedure would store your data in an array.
    Bookmark Topic Watch Topic
  • New Topic