Click here to Skip to main content
15,887,676 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: ORA-009000 Invalid SQL Statement when executing from code Pin
Simon_Whale25-Apr-14 1:47
Simon_Whale25-Apr-14 1:47 
GeneralRe: ORA-009000 Invalid SQL Statement when executing from code Pin
USAFHokie8025-Apr-14 1:49
USAFHokie8025-Apr-14 1:49 
SuggestionRe: ORA-009000 Invalid SQL Statement when executing from code Pin
Richard Deeming25-Apr-14 1:51
mveRichard Deeming25-Apr-14 1:51 
GeneralRe: ORA-009000 Invalid SQL Statement when executing from code Pin
USAFHokie8025-Apr-14 2:13
USAFHokie8025-Apr-14 2:13 
GeneralRe: ORA-009000 Invalid SQL Statement when executing from code Pin
Dave Kreskowiak25-Apr-14 2:41
mveDave Kreskowiak25-Apr-14 2:41 
GeneralRe: ORA-009000 Invalid SQL Statement when executing from code Pin
USAFHokie8025-Apr-14 2:54
USAFHokie8025-Apr-14 2:54 
GeneralRe: ORA-009000 Invalid SQL Statement when executing from code Pin
Dave Kreskowiak25-Apr-14 3:02
mveDave Kreskowiak25-Apr-14 3:02 
GeneralRe: ORA-009000 Invalid SQL Statement when executing from code Pin
USAFHokie8025-Apr-14 3:15
USAFHokie8025-Apr-14 3:15 
I cannot see how my asking this question could negatively affect anyone. It seems like people on here, like most of the internet, just want to complain about something. This is tantamount to chastising me for using an incorrect homonym in my sentences.

And once again, the procedure runs flawlessly when execute from an Oracle client. If there were a problem with the code in the procedure I would have gotten an error. But, just to satisfy this useless endeavor, I'll indulge you.

SQL
create or replace
procedure UpdateUnitType as
--updates unit type codes
  cnt number(10,0):=0;

begin
 
  for u in (select * from unit where type_cd = 1)
  loop
  
    cnt := 0;
  
    select count(billet_id)
    into cnt
    from billet
    where fiscal_year = u.fiscal_year
    and uic = u.uic;      
    
    if cnt > 0 then
    
      update unit
      set type_cd = 2
      where unit_id = u.unit_id;
    
    end if;
    
  
  end loop;

end updateunittype;

GeneralRe: ORA-009000 Invalid SQL Statement when executing from code Pin
Dave Kreskowiak25-Apr-14 6:28
mveDave Kreskowiak25-Apr-14 6:28 
GeneralRe: ORA-009000 Invalid SQL Statement when executing from code Pin
thatraja25-Apr-14 3:11
professionalthatraja25-Apr-14 3:11 
QuestionHow to increase row height in list view vb.net 2008 Pin
D.Manivelan24-Apr-14 23:06
D.Manivelan24-Apr-14 23:06 
QuestionThird Party Software/ OCX grammar checker for VB 6.0 Pin
radjitz24-Apr-14 22:00
radjitz24-Apr-14 22:00 
AnswerRe: Third Party Software/ OCX grammar checker for VB 6.0 Pin
CHill6025-Apr-14 0:47
mveCHill6025-Apr-14 0:47 
QuestionChanging backcolor of a textbox Pin
CHill6024-Apr-14 5:54
mveCHill6024-Apr-14 5:54 
AnswerRe: Changing backcolor of a textbox Pin
Tino Fourie24-Apr-14 6:16
Tino Fourie24-Apr-14 6:16 
GeneralRe: Changing backcolor of a textbox Pin
CHill6025-Apr-14 0:45
mveCHill6025-Apr-14 0:45 
AnswerRe: Changing backcolor of a textbox Pin
Richard Deeming24-Apr-14 6:21
mveRichard Deeming24-Apr-14 6:21 
QuestionAccessing an external DLL from a Timer - should there be a problem? Pin
Peter R. Fletcher23-Apr-14 11:39
Peter R. Fletcher23-Apr-14 11:39 
AnswerRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Dave Kreskowiak23-Apr-14 12:32
mveDave Kreskowiak23-Apr-14 12:32 
GeneralRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Peter R. Fletcher23-Apr-14 12:48
Peter R. Fletcher23-Apr-14 12:48 
AnswerRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Bernhard Hiller23-Apr-14 22:35
Bernhard Hiller23-Apr-14 22:35 
GeneralRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Peter R. Fletcher24-Apr-14 3:17
Peter R. Fletcher24-Apr-14 3:17 
AnswerRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Bernhard Hiller24-Apr-14 21:15
Bernhard Hiller24-Apr-14 21:15 
GeneralRe: Accessing an external DLL from a Timer - should there be a problem? Pin
Peter R. Fletcher25-Apr-14 5:49
Peter R. Fletcher25-Apr-14 5:49 
QuestionExcel VBA Macro ' Run-time error '9': Subscript out of range ' Pin
Deimantas23-Apr-14 0:53
Deimantas23-Apr-14 0:53 

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.