Ask a Question related to Coldfusion Database Access, Design and Development.
-
nitai_co #1
Ref Cursor and type
Hi all
I finally got the Ref Cursor stored procedure working but am stuck on the
following. I have this package body:
CREATE OR REPLACE PACKAGE BODY PACK_MYCURSOR AS
PROCEDURE REFCUR (
theuserid IN OUT users.user_id%type,
userfirstname OUT users_TableRows) IS
BEGIN
OPEN userfirstname FOR
select * from users
where user_id = theuserid
;
END REFCUR ;
END PACK_MYCURSOR ;
/
Now this is working fine, but I would need to have explisit fields in the
select statement, like "select user_id from users", but when I do this then I
get error messages of "expression is of wrong type". Anybody know how to solve
this?
Thank you.
nitai_co Guest
-
Problem with character palette and Tracking field: can't type zero after type is modified
System: Illustrator CS, Panther 10.3.3 Try this: Create a few characters of type. Select some letters and change their tracking (Option + Command... -
Illustrator CS type cursor, character & formatting
Has anyone else had a problem with the text cursor in a text box in Illustrator CS not being visible? It does not matter where you try to position it... -
cursor 200-problem on mac but not pc? how to swap cursor image?
Hi, I want to hide the cursor in my projector. I've been using "cursor 200" for some time now and it works fine. But now, when I try my projector... -
Change the "web hand" cursor in normal arrow cursor?
Visit my page at http://www.frenchberliner.com and see the swap image...when you fly over it to see the effecct the cursor changes in a small hand as... -
Locking a single row - what type of a cursor to use?
Hi, What's the best way to keep a record locked while you are modifying it so that nobody else can change the record (reading it should be... -
paross1 #2
Re: Ref Cursor and type
Declare your refererence cursor as WEAK type instead of STRONG. In other words,
do not specify RETURN rowtype%ROWTYPE in your declaration in the spec.
Declare as:
TYPE users_TableRows IS REF CURSOR;
Phil
paross1 Guest
-
nitai_co #3
Re: Ref Cursor and type
You don't know how many hours I spend on this...Thank you. I am in the middle of reading a PL/SQL Book but some things are just not so easy to crasp :-)
nitai_co Guest
-
nitai_co #4
Re: Ref Cursor and type
Just another quick question in this regard.
We are using quite a lot of stored procedures with "Execute immediate" which
allows us to create dynamic SQL. Now is this possible with the package specs
too?
I have this:
CREATE OR REPLACE PACKAGE similar AS
TYPE users_TableRows IS REF CURSOR;
PROCEDURE img_colour (
theimgid IN OUT users.user_id%type,
thecur OUT users_TableRows);
END similar ;
/
We would need to have the "users" table to be dynamic, since some use the
tables with "test_users" and others with "demo_users". Is this even possible?
nitai_co Guest
-
paross1 #5
Re: Ref Cursor and type
If you want a GREAT PL/SQL reference, read Oracle PL/SQL Programming by Steven
Feuerstein from O'Reilly. In my opinion, Feuerstein is the guru of gurus for
PL/SQL, and he is easy to read and follow.
Phil
paross1 Guest
-



Reply With Quote

