Home » Developer & Programmer » Forms » Urgent help regd record group
Urgent help regd record group [message #83768] Tue, 09 December 2003 21:07 Go to next message
Taran
Messages: 21
Registered: December 2001
Junior Member
Hi ,My problem is that I am retrieving values from record group in forms when button pressed trigger .Values are like DG or EX etc
I want to make a select statement by these values as select * from table_name where column_name in(retrieved values from record group like DG,EX etc)
I even concatenate string with retrieved values by concatenating single quotes and comma in between
string looks like
'DG','EX'
when I use this string in sql statement IN operator it retrieves zero rows but retrieves 300 rows if I write directly 'DG','EX' in the IN operator.Kindly help or suggest some other way.
See below code too and help soon
Thanks

declare
final varchar2(100) := ''''||'DG'||''''||','||''''||'EX'||'''');
tmp number;
begin
dbms_output.put_line(final); /*it shows 'DG','EX' */
Select count(*) into tmp
from item_mst
where
itm_type_cd in (final) ;
dbms_output.put_line(tmp); /* it shows 0 */
end;
/
See reply in PLSQL forum. [message #83770 is a reply to message #83768] Wed, 10 December 2003 00:37 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Don't post your questions in multiple fora. One forum is enough.

MHE
Re: See reply in PLSQL forum. [message #83774 is a reply to message #83770] Wed, 10 December 2003 17:55 Go to previous messageGo to next message
Taran
Messages: 21
Registered: December 2001
Junior Member
Sorry dear for posting in multiple forums...I got my solution from pl sql forum ..Thanks..I will take care not to post in multiple forums...I posted so I will get immediate reply from anywhere...
Thanks...
Re: See reply in PLSQL forum. [message #84096 is a reply to message #83770] Wed, 28 January 2004 08:35 Go to previous message
CARLOS
Messages: 24
Registered: February 2000
Junior Member
I need to know.
How I do can to put a query result into a text file??

Regards,
Previous Topic: how to run a report from a form
Next Topic: dynamicly created graphics/charts in Forms
Goto Forum:
  


Current Time: Wed Jul 03 10:22:05 CDT 2024