Click here to Skip to main content
15,899,679 members
Home / Discussions / Database
   

Database

 
GeneralRe: Store Images In SQL Table Pin
PIEBALDconsult19-Mar-12 14:11
mvePIEBALDconsult19-Mar-12 14:11 
AnswerRe: Store Images In SQL Table Pin
Eddy Vluggen17-Mar-12 3:02
professionalEddy Vluggen17-Mar-12 3:02 
AnswerRe: Store Images In SQL Table Pin
jschell17-Mar-12 7:57
jschell17-Mar-12 7:57 
QuestionNot sure where to ask this question... Pin
JohnnyG16-Mar-12 7:41
JohnnyG16-Mar-12 7:41 
AnswerRe: Not sure where to ask this question... Pin
R. Giskard Reventlov16-Mar-12 11:29
R. Giskard Reventlov16-Mar-12 11:29 
GeneralRe: Not sure where to ask this question... Pin
JohnnyG17-Mar-12 2:33
JohnnyG17-Mar-12 2:33 
AnswerRe: Not sure where to ask this question... Pin
PIEBALDconsult18-Mar-12 9:07
mvePIEBALDconsult18-Mar-12 9:07 
QuestionOracle 11g: using cursors inside procedure. Pin
USAFHokie8016-Mar-12 6:20
USAFHokie8016-Mar-12 6:20 
I'm trying to return two ref cursors from a procedure and having a bit of trouble. What I'm trying to do is grab the info from the first cursor, select a few fields out of it and join to some other info and stick the result into a table variable... then select distinct items from that table into the second cursor. But I can't get this to compile. Can someone tell me what I'm doing wrong please?

type T_CURSOR is REF CURSOR

SQL
procedure FetchSL3Details_PRC
(
  c_items out T_CURSOR,
  c_identifiers out T_CURSOR,
  p_niin in char
) as
  v_idents IDENTIFIER_TABLE_TYPE:= IDENTIFIER_TABLE_TYPE();
  BEGIN
    
    open c_items for
      select
        its.item_set_id,
        its.niin,
        its.parent_niin,
        its.commodity_id,
        its.service_type,
        its.sl3_type,
        its.qty,
        its.created_id,
        its.created_dt,
        its.modified_id,
        its.modified_dt
      from
        item_set its
      start with its.niin = p_niin
      connect by prior its.niin = its.parent_niin;
      
      for item in c_items
      loop
        v_idents.extend;
        v_idents(v_idents.LAST) := identifier_row_type(item.commodity_id,
                                                          get_group_name_fun(item.commodity_id),
                                                          0);
        v_idents.extend;
        v_idents(v_idents.LAST) := identifier_row_type(item.created_id,
                                                          get_formatted_name_fun(item.created_id),
                                                          0);
        v_idents.extend;
        v_idents(v_idents.LAST) := identifier_row_type(item.modified_id,
                                                          get_formatted_name_fun(item.modified_id),
                                                          0);
      end loop;
      
      open c_identifiers for
        select 
          distinct(v.id),
          v.name,
          v.type
        from
          v_idents v;
    
  END FetchSL3Details_PRC;

QuestionWhat happens when two users try to access or update the same record (Access) Pin
Richard.Berry10015-Mar-12 12:12
Richard.Berry10015-Mar-12 12:12 
AnswerRe: What happens when two users try to access or update the same record (Access) Pin
Mycroft Holmes15-Mar-12 12:41
professionalMycroft Holmes15-Mar-12 12:41 
GeneralRe: What happens when two users try to access or update the same record (Access) Pin
Richard.Berry10015-Mar-12 18:41
Richard.Berry10015-Mar-12 18:41 
AnswerRe: What happens when two users try to access or update the same record (Access) Pin
Peter_in_278015-Mar-12 13:33
professionalPeter_in_278015-Mar-12 13:33 
GeneralRe: What happens when two users try to access or update the same record (Access) Pin
Mycroft Holmes15-Mar-12 14:53
professionalMycroft Holmes15-Mar-12 14:53 
GeneralRe: What happens when two users try to access or update the same record (Access) Pin
Peter_in_278015-Mar-12 15:15
professionalPeter_in_278015-Mar-12 15:15 
GeneralRe: What happens when two users try to access or update the same record (Access) Pin
Richard.Berry10015-Mar-12 18:49
Richard.Berry10015-Mar-12 18:49 
AnswerRe: What happens when two users try to access or update the same record (Access) Pin
Bernhard Hiller15-Mar-12 21:57
Bernhard Hiller15-Mar-12 21:57 
GeneralRe: What happens when two users try to access or update the same record (Access) Pin
Richard.Berry10016-Mar-12 7:15
Richard.Berry10016-Mar-12 7:15 
GeneralRe: What happens when two users try to access or update the same record (Access) Pin
Peter_in_278016-Mar-12 10:53
professionalPeter_in_278016-Mar-12 10:53 
QuestionWhat's the best way to temporarily persist results of a long running SP? Pin
Trekstuff14-Mar-12 4:18
Trekstuff14-Mar-12 4:18 
AnswerRe: What's the best way to temporarily persist results of a long running SP? Pin
Blue_Boy14-Mar-12 5:00
Blue_Boy14-Mar-12 5:00 
GeneralRe: What's the best way to temporarily persist results of a long running SP? Pin
Trekstuff14-Mar-12 5:12
Trekstuff14-Mar-12 5:12 
AnswerRe: What's the best way to temporarily persist results of a long running SP? Pin
Eddy Vluggen14-Mar-12 6:16
professionalEddy Vluggen14-Mar-12 6:16 
GeneralRe: What's the best way to temporarily persist results of a long running SP? Pin
Trekstuff14-Mar-12 7:12
Trekstuff14-Mar-12 7:12 
AnswerRe: What's the best way to temporarily persist results of a long running SP? Pin
Eddy Vluggen14-Mar-12 7:47
professionalEddy Vluggen14-Mar-12 7:47 
GeneralRe: What's the best way to temporarily persist results of a long running SP? Pin
Trekstuff14-Mar-12 7:52
Trekstuff14-Mar-12 7:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.