How to find ASCII value of TAB ?

Hi Friends,
I am trying to find the ASCII value of the TAB character using the standard ASCII function like:
SELECT ASCII('<TAB>') FROM DUAL;
I am executing the above command in SQL*Plus.
It is not treating it as TAB.
It is treating it as space and giving ASCII value of Space -32.
Please let me know how to achieve this?
Database Version - 9i
Regards
Sreekanth Munagala.

Well, evidently mine are smarter... :-)
SQL> select * from v$version;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
PL/SQL Release 9.2.0.8.0 - Production
CORE    9.2.0.8.0       Production
TNS for 32-bit Windows: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production
SQL> select ascii('     ') from dual;
ASCII('')
         9
SQL>
SQL> select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> select ascii('     ') from dual;
ASCII('')
         9
SQL>

Similar Messages

  • How to find the value of a variable in other program

    How to find the value of a variable in other program say I am in a FM and this FM is being called in from other program and I want to know some of the variable details of the program from the FM itself. Imagine if this is a txn. and I need to know the details from some of the programs while executing the same transaction
    Regards
    Vin

    Hi Vinayak,
         you will be having your first program values in internal table or some variables,
        when you are calling the second program you wii use like this,
        SUBMIT <Second Program Name> USING SELECTION-SCREEN '1000'
                           WITH s_emp(second program select-options)   IN t_emp(first program variables)
                           WITH p_chk   EQ t_chk
                           WITH p_r1    EQ t_r1
                           WITH p_month EQ t_month
                           WITH s_cust1 IN t_cust1
                           WITH p_r2    EQ t_r2
                           WITH s_cust2 IN t_cust2
                           WITH s_week  IN t_week
                           AND RETURN.
    you have pas like this to get your first program details.

  • How to find report values using report writer

    hi,
    Please help me.
    How to find report values using report writer
    Regards,
    RRK.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 12:01 PM

    Thanks all for the reply.
    I am trying to solve a problem where report parameter value that is set at Management Console is wiped out after calling replaceConnection.
    databaseController.replaceConnection(oldConnectionInfo, newConnectionInfo,
    null,DBOptions._doNotVerifyDB);
    We have to support changing database connection from a java utility
    class. But once replaceConnection is called all existing static parameter values are lost. To fix this issue we thought of getting parameters and values before calling replaceConnection and setting it after replaceConnection.
    Version is CS2008 SP3 - version 12.3.0.601
    If there is any other option of fixing the original wipe out issue?
    ParameterValues.getValues() didn't return value. I will try ParameterValues.getCurrentCalues() but the document says ParameterValues.getValues() is  equivalent to the IParameterField.getCurrentValues() method  unless it is empty, in which case it is equivalent  to the IParameterField.getDefaultValues() method.
    So getCurrentValues() may not work.

  • How to find the Values of SAP Gateway Server Host  and Gateway Service Valu

    Hi All,
    I installed SAPR/3 4.7 EE on Windows. For configuring SLD and LDAP i am unable to give the SAP Gateway Server Host and Gateway Service values.
    Can any one plz suggest me how to find these values.
    Regds
    Phanikumar

    Hello, SAP Gateway Server Host and Gateway Service are used to set up rfc connectivity, that is the host name and the system number where your sld and ldap is responding, if you have no sld and no ldap , just simply uncheck that options while installing.
    Have a nice week end, Luciano.

  • How to find these values fall in what time?

    Post Author: newcruser
    CA Forum: General
    From 9 AM to 5 PM time range..how to find these values fall where?.
    Is that done using group selection method?.  Please give me idea and direction
    UserId   Type      login                               logout1           1          2008-04-13 09:30:42         2008-04-13 10:30:122           2          2008-04-13 09:30:12         2008-04-13 11:00:323           1          2008-04-13 10:30:32         2008-04-13 12:56:234           2          2008-04-13 10:30:42         2008-04-13 12:00:345           2          2008-04-13 11:30:34         2008-04-13 13:40:236           1          2008-04-13 12:30:43         2008-04-13 13:00:437           1          2008-04-13 13:20:43         2008-04-13 14:45:218           2          2008-04-13 14:30:42         2008-04-13 15:15:599           1          2008-04-13 15:00:42         2008-04-13 16:30:4210         1          2008-04-13 16:20:42         2008-04-13 17:00:00

    Post Author: newcruser
    CA Forum: General
    In my case minimum (login) time changes and maximum(logout) time changes everyday.
    I want to create from minimum (login) to  maximum(logout) for every hour, how many people are online. How to do?.
    UserId          login                               logout1           2008-04-13 09:30:42         2008-04-13 10:30:122           2008-04-13 09:30:12         2008-04-13 11:00:323           2008-04-13 10:30:32         2008-04-13 12:56:234           2008-04-13 10:30:42         2008-04-13 12:00:345           2008-04-13 11:30:34         2008-04-13 13:40:236           2008-04-13 12:30:43         2008-04-13 13:00:437           2008-04-13 13:20:43         2008-04-13 14:45:218           2008-04-13 14:30:42         2008-04-13 15:15:599           2008-04-13 15:00:42         2008-04-13 16:30:4210         2008-04-13 16:20:42         2008-04-13 17:00:00
    i found minimum (login) and maximum(logout) using below formula. Now i want to find every hour from minimum (login) to maximum(logout) , so i can use each hour value in formula to calculate how many people are online for that particular time. How to do that?.
    @Minimum
    DatePart("h",(Minimum ()))
    @Maximum
    DatePart("h",(Maximum()))

  • How to display ascii value

    sir i want to know d solution for displaying ascii value?/?
    also sir plz tell how to convert ascii to hex and hex to ascii????
    i am finding difficulty to make d program.... dats y i have attached any file bcz my program is not prepared yet

    Hi sir,
    convert your string to an U8 array and display that array in an array indicator set to hex display.
    Or switch your string to hex display…
    Also read this! It's a pain to read your message for non-native English speakers!
     

  • How to find default value of a column ?

    hi , alok again,
    i have to find default value of a column.
    Acutally i have found , column's max width, its nullability, precision, scale, type, but NOT default value.
    I will have to use the default value and nullability while validating user's input.
    ResultSetMetaData doesnot contain any method any such method...
    Pls help,
    how can i do so.
    Any idea will be highly appreciated.
    Thanks in adv.
    Alok

    Hi,
    After you get the resultset from DatabaseMetaData.getColumns() as shown by sudha_mp you can use the following columns names to retrieve metadata information:
    Each column description has the following columns:
    TABLE_CAT String => table catalog (may be null)
    TABLE_SCHEM String => table schema (may be null)
    TABLE_NAME String => table name
    COLUMN_NAME String => column name
    DATA_TYPE int => SQL type from java.sql.Types
    TYPE_NAME String => Data source dependent type name, for a UDT the type name is fully qualified
    COLUMN_SIZE int => column size. For char or date types this is the maximum number of characters, for numeric or decimal types this is precision.
    BUFFER_LENGTH is not used.
    DECIMAL_DIGITS int => the number of fractional digits
    NUM_PREC_RADIX int => Radix (typically either 10 or 2)
    NULLABLE int => is NULL allowed.
    columnNoNulls - might not allow NULL values
    columnNullable - definitely allows NULL values
    columnNullableUnknown - nullability unknown
    REMARKS String => comment describing column (may be null)
    COLUMN_DEF String => default value (may be null)
    SQL_DATA_TYPE int => unused
    SQL_DATETIME_SUB int => unused
    CHAR_OCTET_LENGTH int => for char types the maximum number of bytes in the column
    ORDINAL_POSITION int => index of column in table (starting at 1)
    IS_NULLABLE String => "NO" means column definitely does not allow NULL values; "YES" means the column might allow NULL values. An empty string means nobody knows.
    SCOPE_CATLOG String => catalog of table that is the scope of a reference attribute (null if DATA_TYPE isn't REF)
    SCOPE_SCHEMA String => schema of table that is the scope of a reference attribute (null if the DATA_TYPE isn't REF)
    SCOPE_TABLE String => table name that this the scope of a reference attribure (null if the DATA_TYPE isn't REF)
    SOURCE_DATA_TYPE short => source type of a distinct type or user-generated Ref type, SQL type from java.sql.Types (null if DATA_TYPE isn't DISTINCT or user-generated REF)
    Regards,
    bazooka

  • How to find the value that is in structure???

    hi experts,
                 i am changing standard form QM_INSP_RESULT I have an field MITTELWERT in QGRES
    ie QGRES-MITTELWERT where QGRES is a structure .i need the value that is present in the field.How to find it.

    Hi Manikandan Muruganandham ,  
    To find fields the refined search is through Transaction SE84.
    Go there and find the fields of your choice.
    1> <b>ABAP DICTIONARY</b>
    2> <b>FIELDS</b>
    3> Select <b>Table fields</b> to know where you can find the field of your choice.
    Reward Points if useful.
    Thanks,
    Tej..

  • How to convert ascii value into character and vice versa

    Hello the java world people,
    I want to convert each characters from my array into their corespondent ascii value and vice versa, how can I do that ?

    The term "ASCII" is often used very loosely.
    Java char values are UNICODE and the ASCII codes are indentical to UNICODE characters in the range 0 .. 127. UNICODE values 128 and above don't have coresponding ASCII values, though 128-255 corespond to ISO-8859-1 which is one of the encodings often called "extended ASCII".
    As shown above you can covert between chars and coresponding int value simply with a cast, but you should be aware that the more exotic characters will not give you sensible values.

  • How to find  dynamic value(screen value) in table control for current row .

    hi to all,
    i used table control in my screen. for column no 2 field i was used serrch help. and for column number 3 i used a dynamic help.
    in change mode you can change any row for table control.
    when i was using search help for a row which was already entered in column no 3 i cannot get any value.
    how i can get value of row no 3 and column no 2 value.
    thanks

    Try using like index for the serarch the TC-current_line

  • How to find RGB values of an image in MIDP 2.0?

    I am builiding a midlet in which i m supposed to take an image and than i want to find RGB values of all pixels
    .After Finding the RGB values i want to store them in an array,and sort that array to find 5 Most repeated element of that array.Also i wanna construct color from those 5 Values and Display Those Colors.Can Anyone
    Guide me Through This?

    I have not used Vision much but I would be very surprised if you would be able to do this directly.  It should be straight forward to get an average intensity with or without Vision (convert image to 2D matrix and average the values, for instance) -- the difficulty will be correlating the calculated values back to Lumens, etc. This could likely be done but it would probably require you to come up with the calibration curve and would be sensitive to setup changes, dust on the lens, equipment aging, etc. and these things should not be discounted.  This is why, particularly if  you're in a production environment, you'd probably better off buying a commercial meter and talking to it via a driver than to try to do it yourself -- they've already taken these things into account. 
    One more thing, in the picture you attached, any luminosity calculations you made would probably be skewed low as the white is saturated (railed) in spots and those under-reported values would affect your average.  If you did try to come up with a Lumen calculation, you would probably want to turn your aperature and/or exposure down before creating the calibration curve.

  • How to find a value into a data block

    There is a way to find a value into a data block, like finding
    one into a record group
    null

    Rafael Moreno (guest) wrote:
    : There is a way to find a value into a data block, like finding
    : one into a record group
    Try something like this:
    -- has to be in a when-button-pressed or key trigger
    go_block('x_block');
    first_record;
    r_found:=false;
    loop
    if :x_block.search_field:=search_value then
    r_found:=true;
    exit;
    end if;
    down;
    end loop;
    if r_found=false then
    first_record;
    message('Value '

  • How to find the value of STO

    hi SAP gurus,
    pls help me out.
    is there any T-code to find the values of STO made.

    Hi Gaurav
    PLease use the Tcode ME81
    Regards
    Aasif

  • How to pass ascii values in receiver file contentversion

    Hi ,
    How to define a ascii vlaues in file content conversion(eg ASCII13) in file reciver adapter.
    Regards
    Swathi

    hi,
    Special Characters in the FCC:
    In all strings for separators (NameA.fieldSeparator, NameA.beginSeparator, and NameA.endSeparator), you can specify non-printable ASCII characters. These characters can each be inserted individually in the strings in the form ´0xHH´ (including the quotation marks), where HH represents the character coded as a hexadecimal value. A line break can be entered using the character ´nl´ (including the quotation marks); nl stands for new line. The special character ´0´ is not a separator character.
    and
    Specify the File Type of the document.  :  Binary/ Text
    Under File Encoding, specify a code page.
    The default setting is to use the system code page that is specific to the configuration of the installed operating system. The content of the message is then converted to the corresponding code page before the message is saved as a file.
    You should use this conversion only for plain text and not for XML documents. If you want to change the encoding of an XML document, then select the File Type as Binary and apply XMLAnonymizerBean as an additional module in the Module tab page.
    Permitted values for the code page are the existing charsets of the Java runtime. According to the SUN specification for the Java runtime, at least the following standard character sets must be supported:
    US-ASCII
    Seven-bit ASCII, also known as ISO646-US, or Basic Latin block of the Unicode character set
    please refer sap.help:
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    thanks,

  • How to find duplicated values in rows obtained from multiple tables

    Hi.
    I need to find the duplicates stored in different tables of my database. I have some tables like the following model (I know it could be nonsense, but that's because it's simplified):
    table person { id, name, surname }.
    table zoo {id, owner, name, city} (zoo.owner -> person.id)
    table area {id, zoo, type, name} (area.zoo -> zoo.id).
    table dog {id, area, name, colour} (dog.area -> area.id)
    table elephant {id, area, name, height} (elephant.area -> area.id)
    As ids are autoincremental, it could happen that a person has two zoos with identical areas (meaning, these areas has the same type and name, same dogs (same name and colour) and same elephants (same name and height)). In an example with data:
    person
    id     name     surname
    p1     john     doe
    zoo
    id     owner     name          city
    z1     p1          central     NY
    z2     p1          central     NY
    area
    id     zoo     type     name
    a1     z1     open     main
    a2     z2     open     main
    dog
    id     area     name          colour
    d1     a1     jaro          brown
    d2     a1     chispa     white
    d3     a2     jaro          brown
    d4     a2     chispa     white
    elephant
    id     area     name          height
    e1     a1     dumbo     5
    e2     a1     elphy          4
    e3     a2     dumbo     5
    e4     a2     elphy          4
    That is: John Doe has two zoos in the same city and with the same name. These two zoos, has one open main area each. Each of these areas has two dogs with the same names and colours and two elephants with the same names and heights. So this zoos would be identical. What I want is to delete z2 zoo.
    I'd like to find a SQL function which returns me the id of one of these zoos, so it can respond to the question. Has the person called "John Doe" more than one area with the same type, name, dogs and elephants?
    Is it possible?

    Hi,
    Interesting problem!
    Two distinct zoos are duplicates of each other if they have the same owner, the same name, the same areas, and the same animals in each of those areas.
    It's pretty easy to tell if two zoos are distinct, but have the same owner and name. We could do that with a self-join:
    SELECT       z1.*
    ,       z2.id          AS id_2
    FROM       zoo     z1
    JOIN       zoo     z2  ON   z1.owner     = z2.owner
                    AND      z1.name     = z2.name
                  AND      z1.id          < z2.idBut how can we tell if two zoos that meet these criteria have the same aminals in the same areas? (It amuses me to call these the "critter criteria".)
    One way is to make a list, for each zoo, of all the animals, with all their attributes (that is, the attributes that matter for determining if they are the same), in each area, and then see if the lists for those two zoos is identical. Like this:
    WITH     all_animals     AS
         SELECT     d.id, d.area
         ,     d.name          -- || '~' || d.colour || ...
                   AS attributes
         ,     'DOG'     AS animal
         FROM     dog     d
        UNION ALL
         SELECT     e.id, e.area
         ,     e.name          -- || '?`' || e.height || ...
                        AS attributes
         ,     'ELEPHANT'     AS animal
         FROM     elephant     e
    -- UNION ALL   ... cat ... monkey ...
    ,     got_analytics     AS
         SELECT     z.id          AS zoo_id
         ,     ar.type          -- , ar.name, ...
         ,     an.animal
         ,     an.attributes
         ,     COUNT (*)     OVER ( PARTITION BY  z.id )     AS cnt
         ,     ROW_NUMBER () OVER ( PARTITION BY  z.id
                                   ORDER BY          ar.type     -- , ar.name, ...
                             ,                an.animal
                                         ,                    an.attributes
                           )                    AS r_num
         FROM           zoo          z
         LEFT OUTER JOIN      area          ar  ON   ar.zoo          = z.id
         LEFT OUTER JOIN      all_animals     an  ON       an.area     = ar.id
    SELECT       z1.*
    ,       z2.id          AS id_2
    FROM       zoo     z1
    JOIN       zoo     z2  ON   z1.owner     = z2.owner
                    AND      z1.name     = z2.name
                  AND      z1.id          < z2.id
    WHERE     NOT EXISTS
              SELECT  type     -- , name, ...
              ,          animal, attributes
              ,          cnt, r_num
              FROM    got_analytics
              WHERE   zoo_id     = z1.id
           MINUS         
              SELECT  type     -- , name, ...
              ,          animal, attributes
              ,          cnt, r_num
              FROM    got_analytics
              WHERE   zoo_id     = z2.id
    ORDER BY  z1.id
    ,            z2.id
    ;The first sub-query, all_animals, combines all the animals from all of the separate species tables. For each one, it makes a delimited list (the attributes column) of the columns that count in determining if 2 animals are the same. Different species may have different attributes and different numbers of attributes. The lists have to be delimited by some sub-string (not necessarily a single character) that can never occur in any of the attributes for that species. For example, dogs may never have '~' in their names (or their colours, if you expand the example to include colour). Elephants might have any character, but never have a '?' followed immediately by a grave accent '`'.
    The next sub-query, got_analytics, joins the zoo and area tables to this combined list of animals. The joins are outer joins, so we can detect as duplicates two zoos that have no areas, or two areas that have no animals.
    In the main query, I used MINUS to tell if the lists for two given zoos were identical. If x MINUS y produces no results, then every row in x has a matching row in y. To say that x and y are identical, we also have to know that every row in y has a matching row in x. Rather than do another MINUS, I counted the rows (got_analytics.cnt), so that if y has more rows than x, no rows will match when we do the MINUS.
    Here's the output I got from your sample data:
    `       ID      OWNER NAME             ID_2
             1          1 CENTRAL NY          2This shows the distinct ids, and the common attributes, of all distinct pairs of zoos that match. You can join this to the person table, if you want to see details about the owner.
    If a query is correct, it will not only find all the results it is supposed to find; it will also not find all the results it is not supposed to find, for all the various reasons. I added some more sample data to test one such reason:
    INSERT INTO ZOO (ID, OWNER, NAME) VALUES (91, 1, 'CENTRAL NY');
    INSERT INTO AREA (ID, ZOO, TYPE) VALUES (92, 91, 'MAIN');
    INSERT INTO DOG (ID, AREA, NAME) VALUES (93, 92, 'JARO');
    INSERT INTO DOG (ID, AREA, NAME) VALUES (94, 92, 'CHISPA');Zoo 91 is identical to zoos 1 and 2, except that 91 has no elephants. To thoroughly test this solution, you need to add some more test data, especially zoos that will not be selected for various reasons: for example, two zoos that have all the same animals, but different numbers of areas, or that both have two areas, but the animals are distributed differently between the areas.

Maybe you are looking for

  • Help me please, I need to know why imovie videos use so much memory

    There have been a lot of firsts for me this year. First time owning a laptop, first time owning a mac, and first time uploading videos to youtube. I got my macbook in april and it's my pride and joy. However, I'm having a huge problem with it. I don'

  • Adobe Download Assistant does not show any products for download?

    When I open Download Assistant it doesn't show any products for downloading.

  • IPad stuck when updating wirelessly to iOS 6.1

    I was able to update my iPhone 4 without any problem.  Now my iPad appears to be "stuck" after at least 20 minutes of waiting the bar hasn't moved and it says "preparing update".  All the help I see about upate problems are discussed when people have

  • BW Statistics Key Figures

    Hi everybody, We installed BW statistics and now we want to work with the queries. But we do not understand all key figures. We looked for them in the BI Content but they are not listed there. For examble the two key figures: Short-Term / Total Time 

  • Problems with Flash

    Flash player stopped working on web site Friday afternoon August 7th - ><object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="105" width="803" align="left" classid="clsid:D27CDB6E-AE6D-11cf-96