Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> need script for adding number inside a tuple

need script for adding number inside a tuple

From: Jane <pchcal_at_cs.com>
Date: 19 Oct 2002 09:20:43 -0700
Message-ID: <322bb64a.0210190820.21480a28@posting.google.com>


Hi,
I'm new to SQL*PLUS and need a simple script, and explanation on how to add data(numbers) inside of one tuple. I did searches to look for sample scripts and was unable to locate any.
I believe that the data(number) must first be converted into characters and somekind of string manipulation must be done and a dual table must be used.
maybe i need to use to_char to convert number data??

select bar_id (the number inside bar_id must be added together) from dual;

I need to get the number inside bar_id to add together. example: bar_id=12345
I need a script to add: 1+2+3+4+5

any assistance is greatly appreciated. Received on Sat Oct 19 2002 - 11:20:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US