Re: Please Please Help!!
From: Ayeda (ayeda_at_emirates.net.ae)
Date: 01/10/04
- Next message: Richard Heathfield: "Re: Theodore Adorno, a prophet of data systems design"
- Previous message: Gerry Quinn: "Re: Theodore Adorno, a prophet of data systems design"
- In reply to: Programmer Dude: "Re: Please Please Help!!"
- Next in thread: Kurt Watzka: "Re: Please Please Help!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Jan 2004 04:01:20 -0800
Thanks alot Dude..
I am trying the other group u suggested.
Regards
Ayeda
Programmer Dude <Chris@Sonnack.com> wrote in message news:<3FFC6561.A96A56B2@Sonnack.com>...
> Ayeda wrote:
>
> > Dont know if this is the right place to submit questions.
>
> It's the right place to submit the right sort of questions!
>
> > I need to convert this pl/sql function to java function so that
> > i can use it my jsp page.
>
> That's pretty much a right sort of question, but you may be
> better responses if you seek out a newsgroup that is specifically
> for, either, Java or this PL/SQL.
>
> I don't do much (hardly any) Java, but SQL (in general) is an
> old friend. I'll tell you what I can:
>
> > FUNCTION countItem(adminUser IN STRING,
> > m_menu IN NUMBER)
> > RETURN NUMBER IS
> > cno NUMBER := 0;
>
> (Obviously) A function taking a string and a number and returning
> a number.
>
> > CURSOR cAdminMenu(adminUser VARCHAR2 ) IS
> > [snip]
>
> An SQL query. It combines three separate queries into a single
> table. There's also a sub-query in one of the WHERE clauses.
> Appears to be querying some sort of pages and menus DB, and is
> mainly keying off the value of the string passed into the function.
>
> You'll have to solve the problem of accessing the data in Java.
> Don't know if Java supports and SQL connectivity, but I'm sure
> there's a way.
>
> > BEGIN
> > FOR t IN cAdminMenu(adminUser) LOOP
> > IF t.menuid = m_menu THEN
> > cno := cno + 1;
> > END IF;
> > END LOOP;
> > RETURN cno;
> > END;
>
> The table generated by the query is scanned over, and a count is
> made of items that match the number passed into the function.
> The number of matching items is returned.
>
> HTH,
- Next message: Richard Heathfield: "Re: Theodore Adorno, a prophet of data systems design"
- Previous message: Gerry Quinn: "Re: Theodore Adorno, a prophet of data systems design"
- In reply to: Programmer Dude: "Re: Please Please Help!!"
- Next in thread: Kurt Watzka: "Re: Please Please Help!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|