Is there a length on global variables [message #332159] |
Mon, 07 July 2008 12:28 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
deahayes3
Messages: 203 Registered: May 2006
|
Senior Member |
![doublemint78%40yahoo.com](/forum/theme/orafaq/images/yahoo.png)
|
|
I am adding to a global variable in a form everytime a button is pressed, when the global variable gets to a certain number it gives me an error ORA-06502, is there a maximum length on global variables:
:global.old_emp_no := nvl(:control_x.empl_num_view, 0)||', '||:global.old_emp_no;
:global.old_emp_no:= vnum;
when I am finished adding to the global variable I use it in a query
Set_Block_Property('BSI_EMPL_MASTER_V',DEFAULT_WHERE,'employee_number IN ('||rtrim(vnum,', ')||') '||'ORDER BY EMPLOYEE_NUMBER');
|
|
|
|
|
|
|
Re: Is there a length on global variables [message #341209 is a reply to message #339831] |
Sun, 17 August 2008 21:04 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/67467.jpg) |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Use multiple fields. Test the length on the current field and if it is nearly full then place the new selection criteria into the next field.
I would also consider using a table to store the information that is used in the query. That way, Oracle can use indexes and other database features to make the query more efficient.
David
|
|
|