How we can find the last character in a string(Urgent Plz!)

Gurus!
How we can find the last character in a string.
e.g i have a string say "Str" with value "10-01".
Now i want to find the last character in "Str" i.e "ONE=1".
i am using Oracle developer 6i with Oracle 8i(1.7).
Plz help!
Many thanks!

Use the substr() and length() functions -
x := '10-01';
y := substr(x, length(x));

Similar Messages

  • Find the last character in an aplhanumreic string

    Hi guys first time poster long time hiding in the shadows,
    hopefully someone can help me
    I have set of username stored and I need to find the last
    character before the number for example
    abc123 I would want to find c
    ab123 I would want to find b
    any suggestions as to how I would do this?
    Thanks in advance

    Here's one way:
    <CFSET YourString = "abc123")>
    <CFSET LastChar = "">
    <CFSET Pos = 1>
    <CFSET CharLen = Len(YourString)>
    <CFLOOP from="1" to="#CharLen#" step="1">
    <CFSET Char = right(left(YourString,Pos),1)>
    <CFIF Not IsNumeric(Char)>
    <CFSET LastChar = Char>
    <CFSET Pos = Pos + 1>
    <CFELSE>
    <CFBREAK>
    <CFIF>
    </CFLOOP>

  • How do i find the last selection OR the highlighted selection?

    When i select some items in indesign i have the option of "command + click" to highlight one of the selections. How would i find that highlighted element in scripting?
    OR
    How would i go about finding the last item selected in indesign.
    I'm trying to write a script that relies on some properties of the highlighted element or the last item selected.
    thanks

    Thanks myDavey. That's not exactly what i was looking for, but it had good information on something else i am working on.
    I found the solution to my problem. That highlighted selection is apparently called the "key object".
    And it can be used in scripting as app.selectionKeyObject. This solved what i was looking for.
    And one can find the last selection by picking the last element in the selection array.

  • How i can find the execution plan

    how i can find the execution plan for a quesry , and how i can compare two execution plan

    Mohan,
    Just create a table as follows
    CREATE TABLE T1 (STATEMENT_ID VARCHAR2(30),TIMESTAMP DATE,OPERATION VARCHAR2(30),
              OPTIONS VARCHAR2(30),OBJECT_NAME VARCHAR2(30),COST NUMBER(38),
              ID NUMBER(38),PARENT_ID NUMBER(38), OBJECT_NODE VARCHAR2(128),
              OBJECT_OWNER VARCHAR2(30),OBJECT_INSTANCE NUMBER(38),OBJECT_TYPE VARCHAR2(30),
              OPTIMIZER VARCHAR2(255),SEARCH_COLUMNS NUMBER,POSITION NUMBER(38),
              PARTITION_START VARCHAR2(255),PARTITION_STOP VARCHAR2(255),PARTITION_ID NUMBER(38),
              CARDINALITY NUMBER(38),BYTES NUMBER(38),OTHER_TAG VARCHAR2(255),
              OTHER LONG,REMARKS VARCHAR2(80),DISTRIBUTION VARCHAR2(30)
    Now use the sql statements as
    > EXPLAIN PLAN INTO T1 FOR (SELECT * FROM EMP);
    > Select * from T1
    this should do the job . . .
    Regards,
    K.T. Gandhi Karuna

  • Could someone tell me how i can find the wifi ip on my macbook white. My macbook is version 10.6

    Could someone tell me how i can find the wifi ip on my macbook white. My macbook is version 10.6

    Open System Preferences > Network.
    Select Wi-Fi on the left
    The IP address is noted on the right.
    message edited by:  cs

  • How I can find the  Delivery address changes in purchase order

    Hi Friends,
    How I can find the  Delivery address changes in purchase order
    item details.And how i can find who did ths changes.

    Hi,
    Go to ME22N, here select the line item and click on menu "Environment > Item Changes" to track the changes.
    For multiple POs, go to ME2N, here enter Selection Parameter as "ALLES" and execute the report to check all the changes.

  • TS1424 there are 43 available apps' update  which couldn't be made with my current account. How i can find the account with which i bought them in order to update them

    there are 43 available apps' update  which couldn't be made with my current account. How i can find the account with which i bought them in order to update them

    Use get info in iTunes on your Mac.

  • I purchaised MPV's Core Numbers '09 101 software online yesterday. The software only shows the toutorial, and I couldn't find the actual spread sheet. I have taken a long time watching the toutorial. Please help me on how I can find the actual program.

    I purchaised MPV's Core Numbers '09 101 software online yesterday. The software only shows the toutorial, and I couldn't find the actual spread sheet. I have taken a long time watching the toutorial. Please help me on how I can find the actual spread sheet to work on. Thank you in advance

    Visit the developer site for help.
    https://www.appomator.com/support/

  • TS1292 What is iTunes Gigt Card and how i can find the code

    Dear Team,
    I just started use Iphone4, I have problem during redeem, i want to understand more what is iTuned gift Card and how i can find the cord

    Look on the back of the card.  You may have to scratch off.

  • How to remove only the last element of spreadsheet string

    I use path to string option to store image path into database and while retrieving the string is again converted into path but it gives out an error as the output of array to spreadsheet string gives out a tab at the end which is unable for the IMAQ read file to recognise.but when i use the path of the image directly into IMAQ readfile the image is opened . so how to remove the tab only at the end of output of the spreadsheet string(whose length can vary)? I have also attached my program with this.
    Attachments:
    retrieve_images_from_DB.vi ‏65 KB
    file_path_to_db_(images).vi ‏40 KB
    create_table_for_images.vi ‏45 KB

    indhu wrote:
    > Thanks for your reply!
    > But my problem is to remove only the last element(which is a tab or an
    > alphabet) from a spreadsheet string of any length.
    If you just want to remove the last character of a string just use the
    String Size function reduce the result by one and wire it together with
    the string to the Split String function.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Testing the last character of a string using .endsWith

    Hi,
    I want to check to see if the last character of a string is '@'.
    I tried if (StringAt.endsWith("a")) {
    but got no results.
    Is this the correct way to do it or is there another way.
    Thanks.
    Adam

    javadocs:
    String's endsWith method takes a string argument.
    endsWith
         public boolean endsWith(String suffix)
              Tests if this string ends with the specified suffix.
              Parameters:
                   suffix - the suffix.
              Returns:
                   true if the character sequence represented by the argument is a suffix of the character sequence
                   represented by this object; false otherwise. Note that the result will be true if the argument is the
                   empty string or is equal to this String object as determined by the equals(Object) method.
              Throws:
                   NullPointerException - if suffix is null.

  • Want to single out the last character of a string

    There is a field where there are many strings of varying length. E.g.: AB001XUV, AB003XUK, DJ8933FXUV etc.
    From these strings I need to create a virtual column where only the last character is shown. So it shall be V, K, V for values from the above example.
    Can anyone please suggest me how to achieve this.
    Regards
    Hawker

    SQL> with t as (
      2  select 'AB001XUV' col from dual
      3  union
      4  select 'AB003XUK' col from dual
      5  union
      6  select 'DJ8933FXUV' col from dual
      7  )
      8  select substr(col,-1,1) from t
      9  /
    S
    V
    K
    V
    SQL> create table temp(id number,
                      col varchar2(10),
                      VIRTUAL_COL VARCHAR2(1)   GENERATED ALWAYS AS (substr(col,-1,1)) VIRTUAL
    SQL> insert into temp(id,col) values(1, 'AB001XUV') ;
    SQL> select * from temp ;
            ID COL        V
             1 AB001XUV   V
    SQL> Edited by: Azhar Husain on Aug 16, 2011 1:17 PM

  • The last character of a string

    How to judge the last char of a string is " ?
    if (s.endsWith("""))or
    if (s.endsWith("/""))

    bet
    you just copied and pasted what the OP had written
    and quickly put that
    backslash in, hit post without previewing first just
    to make me look like
    a slow old sod! It's not fair ;-)
    kind regards,
    JosNope, I used the Alt-[numeric code] combinations to manually type each character. Cut-n-paste is for wimps, and actually typing single-stroke keys is for milquetoasts.
    Alt-[numeric code] is for real men ;-)

  • How we can find the eaxct time which pragram takes to run

    hi,
    i have written a program in two different ways.
    i wnat to check which one is taking less time.
    is there any way we can find out excatly how much time is taken by the rprogram to run when irun it using F8

    The runtime analysis provides an overview of the duration and performance of your source code, from individual statements up to complete transactions.
    Choose Menu  ® Test  ® Runtime Analysis or transaction SE30 to start the runtime analysis. In the initial screen, you see the four main functions of this tool, which can be activated by pushing the corresponding button.
    ·         Measurement in dialog status
    ·         Measurement of external session
    ·        Selection of measurement restrictions
    ·         Evaluation of measurement results
    With large applications, it is advisable to first analyze the entire application and then check details in the hit lists.
    With the following information you can carry out the analysis, display and interpret the results, and use this as a basis for optimizing your programs.

  • Is there anyway I can find the LAST date of an app downloaded more than once?

    I look at my recent purchases and it shows the FIRST time i purchased the free app, however it doesn't show any other time that it's been downloaded and I know I've downloaded it 4-5 more times. Is there ANY way I can find ALL of the dates that I re-downloaded this app?

    Change your iTunes (Apple ID) password along with any other password that was stored in the iPod.  If any passwords are associated with credit cards, contact the CC company and get your card replaced (with a new number).  If any passwords are associated with your bank or any savings institution, contact them also and discuss approprate action with them.
    The "Find my..." function is pretty much useless if the device is in the hands of a thief.  All that is necessary is for the thief to connect to any computer with iTunes and "Restore as new."
    The only real protection you have is with the personal information on the device rather than the physical device itself.  This requires action before the device is lost/stolen.  If the device has significant personal information, it should have a strong 8-digit (or longer) password AND be configured for automatic wipe in the event of ten consecutive incorrect password entries.

Maybe you are looking for

  • Transfer the Pur Order Info through BAPI's between SAP R/3 Systems Using XI

    How to Create a Purchase Order for the Vendor and transfer this data through BAPI's between SAP R/3 Systems Using "Exchange Infrastructure(XI)". Please kindly let me know the procedure for creating BAPI's and how to transfer this information between

  • Import DVD Video_TS folder contents?

    G'day, I'm a film student at Griffith Uni, AU... Over 2006 I produced a few short films. The only copies I have of them are burnt onto DVDs using DVD Studio Pro. What I wish to now do is consolidate them onto a single disc. The problem I have is that

  • S_ALR_87012287

    Hi All in the report S_ALR_87012287, we need time of enty and user name, and text filed entered in the SA document. Please suggest me how to resolve this issue. thanks in advance Regards Prasad Edited by: Prasad on Oct 6, 2008 3:38 PM

  • Java, International language, Unicode, Chinese or accented characters

    Hi, I've posted a message in the new to forum but think that this is more of an advanced problem. Sorry for duplication. I am having trouble getting java to output Strings that contain unicode characters out of the normal ascii set. This includes acc

  • Flash Player crashing in Firefox

    System is: MacBook Pro OS X 10.10.2 (14C1514) Firefox 37.0.1 Flash Player 17.0.0.134 Any web site with flash video causes the beach ball spinner, firefox freezes, flash then crashes and firefox unfreezes. This has been happening through different ver