Re: ASCII Char function

2001-11-12 Thread Pullikol Kumar


Hi Muthu

 Try this PL/SQL , HTH

FUNCTION   get_asscii  (in_val IN VARCHAR2 )
RETURN  VARCHAR2
IS
 lv_valVARCHAR2(2);
 BEGIN
  SELECT  CHR(in_val)
  INTO   lv_val
  FROM  DUAL
  ;
  RETURN(lv_val);
 EXCEPTION
 WHEN  OTHERS THEN
  RETURN (NULL);
END;


Pulikkol Nitheesh Kumar. Software Engineer.
Mannai Corporation
C.O.S,PO.Box 76.
Doha, Qatar.
Mail id :pullikol dot kumar at mannai dot com
Phone : 4412-555 Extn.(363), 4641382 (R).
http://mannai dot com dot qa




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Pullikol Kumar
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: ASCII Char function

2001-11-11 Thread Prasad BAV

Hi Muths,

There is chr() function in PL/SQL. For example select
chr(65) from dual will give you the corresponding
ascii character.

I hope this answers your question.

Regards,

Prasad BAV.

--- Muthaiah [EMAIL PROTECTED] wrote:
 Hi,
 
 I am writing a program to get the ASCII character by
 giving input as the 
 number.
 
 If I give 65, the program should return me A.
 
 How can I achieve this in PL/SQL.
 
 TIA,
 
 Muths
 
 

_
 Do You Yahoo!?
 Get your free @yahoo.com address at
 http://mail.yahoo.com
 
 -- 
 Please see the official ORACLE-L FAQ:
 http://www.orafaq.com
 -- 
 Author: Muthaiah
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- (858) 538-5051  FAX:
 (858) 538-5051
 San Diego, California-- Public Internet
 access / Mailing Lists


 To REMOVE yourself from this mailing list, send an
 E-Mail message
 to: [EMAIL PROTECTED] (note EXACT spelling of
 'ListGuru') and in
 the message BODY, include a line containing: UNSUB
 ORACLE-L
 (or the name of mailing list you want to be removed
 from).  You may
 also send the HELP command for other information
 (like subscribing).


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Prasad BAV
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).