How to display each character of an input string in different rows

Dear Members,
I want to write a SQL or PL/SQL where in I can separate and display each character of an input string into multiple rows.
For eg, the input string is TESTING, I want the result to be displayed as following:
1 T
2 E
3 S
4 T
5 I
6 N
7 G
I know we can use substr, but it returns me only one or more than one characters consecutively.
Please help me get the desired output.
Thanks in advance.

Hi,
Perhaps
with a as
select 'TESTING' text from dual
select level, substr(a.text,level,1)
from a
connect by level <= length(a.text)

Similar Messages

  • How to display greek character in adobe digital edition using urf-8

    how to display greek character in adobe digital edition using urf-8

    when i tried to open below link
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm
    It's not opening & displaying access denied message as below.
    403 Access denied
    You do not have the permissions to access this resource
    Error is logged with Tag:
    Just want to know, Is it possible to display japanese characters on report using crystal report 8.5?
    We've constraint to use only CR 8.5
    Regds,
    Kaushal

  • How to display each anchor point number or label?

    Hello AI Community,..
                                      in an earlier Illustrator CS version, i was able to display any Paths' anchor point Numbers or label. But in CS6 with both "Anchor/Path Labels" enabled in Prefs. > Smart Guide section and in View > Smart Guides, no Point Numbers are displayed.
    Please let me know,..
    1) ..how to display each paths anchor point numbers or label?
    Thanks again for any help or suggestions,
    Jeff

    Thanks Kurt,..
                          just got in, checked and saw Measurment Labels, Anchor/Path Labels, Alignment Guides and Obj,Highlighting are all on. I also realized their working properly as "Anchor" and "Path" text labels display whenever moused over.
    But i can't remember how i enabled anchor point numeric display?
    Checked all menus i could find without luck.
    Any and all suggestions appreciated,
    Jeff

  • How to get each character in a string

    as in 'C' we use arrays to get each character of a string stored in array.how can we get each character of a string stored in a variable.

    Hi,
    For that you need to do offset.
    for example one variable called VAR contains string 'HUMERAH'.
    if you want each character of that string then you need to decalre as many variable as the number of string.
    like
    data : var1(1),
             var2(1),
    var(3),
    var(4).
    var1 = var+(1).
    var2 = var+1(1).
    var3 = var+2(1).
    var4 = var+3(1).
    now var1,var2,var3,var4. contains the single characters.
    Regards,
    Guru
    mark helpful answers

  • How to select each character of column value

    Hi All,
    How can i get each character separately of a column value in a select statement.
    LIKE i emp table if ename='Test' then i want
    a select statement that can give me the result like this
    T,e,s,t
    Regards,
    Anil R

    or this?
    SQL> create table mytable
      2  as
      3  select 'test' text from dual union all
      4  select 'a text, containing two comma''s (,)' from dual union all
      5  select 'a text ending with a comma,' from dual
      6  /
    Tabel is aangemaakt.
    SQL> select text
      2       , substr(regexp_replace(text,'(*?)',',\1'),2,length(text)*2-1) with_commas
      3    from mytable
      4  /
    TEXT                               WITH_COMMAS
    test                               t,e,s,t
    a text, containing two comma's (,) a, ,t,e,x,t,,, ,c,o,n,t,a,i,n,i,n,g, ,t,w,o, ,c,o,m,m,a,',s, ,(,,,)
    a text ending with a comma,        a, ,t,e,x,t, ,e,n,d,i,n,g, ,w,i,t,h, ,a, ,c,o,m,m,a,,
    3 rijen zijn geselecteerd.Regards,
    Rob.
    Message was edited by:
    Rob van Wijk
    Slight modification to cater for strings beginning and ending with commas.

  • How to display records that match user input date

    hi all,
      i need to display records that match user input date (i.e., for example if the difference between user input date and record date is less than 5 years then display those records) , this is for hr bw. any exit is there to check for validation for records to be displayed based on some abap coding.
    vijay

    I just see getApplication method but "Retrieves a list of all the deployed applications."
    My scenario is: I get user, end i want to discorver how application this user i enable to see.

  • How to display the content of a region on a different page

    Hello,
    Does anyone knows how to display the content of a region on an other page. I try to make page that displays content that resides somewhere else in my portal, so I can give a summarization of some hot topics. I really want to display the whole content of some regions (not a display with custom search).
    Thanks a lot,
    Hans

    Set that page as portlet, include it in a region in another page and in the edit defaults decide which regions you want to display.
    Mere.

  • Find a specific character in an input string and getting the string after if

    Hello,
    my requirement is as such, lets say we have an input string ABHISHEK #1234, or BOMBAY 123 #235,
    i need to find if the character string has # in it,, if yes pick all the numbers after # .
    in the above example, i need output as 1234 and 235
    and if any non numeric values after # set a flag
    please help me in this.
    regards
    Abhishek

    Hi Abhishek,
    This can be done in BODS using below settings in file format (only if your source is flat file):
    Below is the source file data :
    abcd#1234,Bombay#23456
    By using this file format setting, you should be able to get all the numbers in one column which you can use futher and you can verify this columns data by using "is_valid_int", not null function in BODS.
    I think it should give you solution.
    Thanks,
    Tanvi

  • How to return a word from an input string in random

    iam trying to return a single word from an input string.the word has to be selected in random.can u help?
    this is wat i tried so far
    private String findKeyWord(String remark)
    String[] input= stringobj.trim().toLowerCase().split(" "); // am splitting the string here and it gets stored in string array//
    return ????? //i should return any one word in the string in random//
    }

    array[random.nextInt(array.length)]

  • How to calculate the frequency of the search string in a row

    Hi,
    I would like to find the frequency of the number of the occurences of a search string in a row which is of type of xmltype content.
    For ex: I would like to find the frequency of the word "oracle" in a row which is of type xmltype content.
    Is there any fuction called frequency or freq...
    Thanks in advance....

    Oh!
    Then How to calculate the frequency of occurences in a row ?
    I hope the Score formula is S=3f(1+log(N/n))
    I want to calculate the f value alone, how is it possible.
    Thanks in advance.....

  • How to display unicode character in jsp pages?

    i have to display user need language using unicode character according to user selected in radio button arabic or german in jsp
    pages. can you explain how i have to code?

    Hi,
    Visit the following URL http://java.sun.com/docs/books/tutorial/i18n/ .
    It will help you.
    bye for now
    sat

  • How to display header data of an input layout

    Hi Experts,
    I have a problem with the two-parted layout. The header information is not displayed in the folder (neither for the input nor for the output layout).
    Some data can be displayed in variables and/or column headings but still I need to show some more important data.
    Does anybody have an idea how to solve this?
    Any hints will be appreciated.
    Thanks,
    Attila

    Hi Alexander,
    Yes, I mean the folder type '1 Folder with Separate Input/Output Areas, Not Web-enabled'. We use the upper layout for data input for several combinations and we sum up the data in the lower output layout.
    In this way the user doesn't have to swith to a query and refresh it every time he wants to know where he is. So I think it makes a lot of sense.
    The thing is, I have only one active button (Check) for the input layout and no buttons at all for the output layout.
    I checked the header settings in BPS0, its OK. I have three unchecked characteristics. But I still don't have the header or the 'Header On/Off' button when I execute the folder.
    I'm affraid this option is not available in our version as Vlad wrote. Which SEM version do you have ?
    Best,
    Attila

  • How to display each record on a new page on Smartforms layout

    Hi,
    I need to know how "each time a new record is displayed..it should be displayed on a new page in Smartforms". How much ever I try using the COMMAND inside the LOOP, it is always printing the records in the loop continiously in a single page with the remaining records moving to the next page only once the first page is full. But what i need is to print first record in the first page, second record in the second page...
    Please let me know the exact steps how to use the COMMAND or any other options to acheive this.
    Thanks!
    Edited by: sap123 on Nov 2, 2008 11:55 AM

    hi,
    create a command just before the main windows display and in its general attributes check the check box go to new page and in its conditions tab..set Falg = X.
    now inbetween the loop of ut table or templet, crete program lines and write the code as below.
    data : lv_lines type i.
    describe table i_vbak lines lv_lines.
    clear flag.
    if sy-tabix LT lv_lines.
    flag = 'X'.
    endif.
    remember that these program lines must be after command...
    Try this,

  • How to display sinlge character in o/p column(matnr) in Alv

    Alvreport:
    material no in output is displaying  Matnr
                                                    sdmo46dm0012
    from the above i want to display only fifth character in o/p:
                                                                                    Matnr
                               required o/p:                           4
    please answer me with coding as soon as possible.

    In the internal which you are using to display the data replace the MATNR just by the fifth character of the MATNR.
    LOOP AT ITAB ASSIGNING <FS_ITAB>.
    <FS_ITAB>-MATNR = <FS_ITAB>-MATNR+4(1).
    ENDLOOP.
    Or you can have a different column which can be used for display purpose of that one character, you will have to have that extra column in the internal table as well as the field catalog.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • How to display a value in an input field in webdynpro

    I want to get a value already shown in a particular input field
    i.e., have to fetch data to that input field as we enter that screen.
    how can we do that?
    kindly reply if anyone knows.
    Thanks and regards
    suju

    Hi,
    First of all u have to declare one variable in the prog. with the name of the i/o box u have given in the screen.
    Now in the PBO of the screen call one module.
    and in that module write the code like,
    if your i/p field name is INPUT_F then
    MODULE assign OUTPUT.
      INPUT_F = 'XYZ'.
    ENDMODULE. 
    Here u can assign the value by fatching through the DB also.
    I think this will help u.
    thanks

Maybe you are looking for

  • I am trying to update my ipad 4.3.5 using the update update button in itune and i'm prompt with "Ipad update software server could not be contracted.....

    The Ipad software update server could not be contracted. Make sure your network setting are correct and your network connection is active, or try again later. I have no problem going internet on the same PC. Itune software "check for update" also no

  • Multiple order currency for same vendor

    I have a vendor who supplies me on local currency and also import in foreign currency. Since the bank details are same for this vendor, our accounts is not allowing us to create two different vendor codes. Is it possible to maintain info.record, cont

  • White border around images in Easy Rotator

    I would like for there to be a small white border around my images when i put them into easy rotator.  I really just want there to be about a 5 px space around them that is really just the background.  I cant seem to find the right place in the code

  • Urgent::!    Pager field in BP?

    When I try to enter pager info into BP addresses tab (SAP GUI) in 5.0, I get a prompt to enter some kind of information about the service?? how do I get it to accept info as I want to add that field in the web ui In trying to customize as well under

  • Adobe media downloader froze

    I was downloading my 2800 pictures from photoshop dot com onto a temporary computer I'm using untill mine is repaired. The media downloader froze two thirds of the way through. A restart didn't help. I uninstalled and re-installed but still no go.I g