If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > How to create procedure?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-11-11, 03:52
leeroyy leeroyy is offline
Registered User
 
Join Date: Jul 2011
Posts: 1
How to create procedure?

Hi all,

This is my first post, hopefully this is where I should post ...
I am trying to create a procedure with the create procedure command in the eclipse sql scrapbook.

I get this error message :
Remote org.teiid.api.exception.query.QueryParserException : Parsing error: Encountered "IN" at line 1

My database type is "Ingres _2006"

My sql statement is as follow:
CREATE PROCEDURE GetAllDivision [IN @DivisionDesc int NOT NULL] AS
begin
select company_code
from consol.fin_division
where company_code = @DivisionDesc
end;

What have I done wrong ??

Thanks in advance!

leeroy
Reply With Quote
  #2 (permalink)  
Old 07-11-11, 04:12
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
probably best asking this question in the forum for the db you are using rather than the java forum. mind you it would also help if you say what db you are using...
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On