Removes a number of string

Dear all,

I'm doing this thing

Suppose that there is a string such as, 11,12,12,11,13,14,11, and I want to remove only the first 12.

After the withdrawal of that channel will be like, 11,12,11,13,14,11,.

Please help me to write the sql query.

SQL > select REPLACE(',11,12,11,13,14,11,',',12,') from double;

REPLACE (', 11, 12)

---------------

1111,13,14,11,

Replace function is not very useful here.

Concerning

Rajat

How about this:

With mytable
As
(
  Select ',11,12,12,11,13,14,11,' theval From dual
)
Select regexp_replace(theval, ',12','',1,1) x
From mytable
/

Tags: Database

Similar Questions

  • How to remove the number of items in the history, bookmarks...

    How to quickly remove the number of elements in the bookmarks, history...
    also how to cut, copy, paste items on web pages.
    . Is there a program like Snagit as eorks on samsung Tablet?

    Go to the menu then settings and find "clear privΘes.

  • Add number of zeros for exhibitor in number of string range

    Hi all

    I want to read a string and convert it to a number that the string is in the form 2.000000E + 00, add a number to it and convert it back to a string in the same format. I can read the string and to convert a number, I'm just not sure since the help files how to convert a string to the specific format. 'Number of exponential string' using gives me the correct number in almost the correct format, just missing the extra number in the exponential.

    For example

    2.000000E + 00-> string to number-> add 0.5-> number to String-> 2.500000E + 0

    Missing the last zero I need for orders of stage position. I can change the string to add, but as the position values will vary, how the chain gets published would be inconsistent. I need preferably a way to convert any number in this format.

    Thank you

    Paul.

    Here's the solution I came up with that.  Not really pretty, but it works.

  • Number to String Conversion

    So the question is, which is rounded up my numbers?  Or, more generally, what have I done wrong here?

    The main program this sub.vi works for the needs these numbers as strings, and I think I picked the wrong number to string conversion .vi or missed a configuration somewhere, because the program takes perfectly good number like - 0.340316 and rounded to-0 (zero negative? it's zero, negative).

    The zero negativity hand, the number of decimal string .vi is rounded up my whole numbers.

    The function is supposed to be converted in its entirety. Just go to help > show contextual help and read the description. The desired function is called fractional number of string.

  • I have a copy of Creative Suite Premium CS6 I have loaded from your web site down.  The serial number on my disk < removed serial number > and the serial number in my game account. However when I try to install, it is said that the number of erial i

    I have a copy of Creative Suite Premium CS6 I have loaded from your web site down.

    The serial number on my disk < removed serial number > and the serial number in the game of my account. However when I try to install, it is said that the number of erial is not valid.

    Please help me to install this drive or allow me to download another copy.

    I have used this program for several years but had lost and major computer crash the installed copy.

    Leroy Noyes

    Error "serial number is not valid for this product". Creative Suite

  • Remove the number of errors error message occurred

    I want to remove the number of errors that occur on a page, while the page is to run validation error?

    Hello

    [method of scotts | http://forums.oracle.com/forums/thread.jspa?messageID=1859661�]

    apex_application.g_notification := substr(apex_application.g_notification,
                                              instr(apex_application.g_notification,'occurred')+8);
    

    Kind regards
    Shijesh

  • The extract number and String and replace with space

    Hello

    I need to extract number and string of a data table. I use Oracle 8i

    For example: 001FI025A, 001PDIT002, 001UXSV029AA
    I want to separate as follows
    001 025 A FI

    001 002 RESULTED

    USXV 029 A 001


    How can I achieve this? Any help is very useful.

    Thank you

    Hello

    Welcome to the forum!

    You must change "001FI025A" to the name of the column. Example:

    SELECT '001FI025A',
           SUBSTR(TRANSLATE('001FI025A',
                            '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                            '0123456789                          '),
                  1,
                  INSTR(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '0123456789                          '),
                        ' ')) AS ELEMENT_1,
           SUBSTR(LTRIM(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                  1,
                  INSTR(LTRIM(TRANSLATE('001FI025A',
                                        '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                        '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                        ' ')) AS ELEMENT_2,
           LTRIM(SUBSTR(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '0123456789                          '),
                        INSTR(TRANSLATE('001FI025A',
                                        '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                        '0123456789                          '),
                              ' '))) AS ELEMENT_3,
           LTRIM(SUBSTR(LTRIM(TRANSLATE('001FI025A',
                                  '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                  '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                  INSTR(LTRIM(TRANSLATE('001FI025A',
                                        '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
                                        '          ABCDEFGHIJKLMNOPQRSTUVWXYZ')),
                        ' '))) AS ELEMENT_4
      FROM DUAL;
    

    Kind regards

  • Remove phone number of iMessage

    Hi all

    I enabled iMessage on my Apple ID, that I use on my iPhone and my Macbook Pro. I added my mobile number to my Apple ID.

    I configured iMessage on my Macbook so I can only be reached on iMessage via my Apple ID address. I want to implement iMessage on my iPhone in the same way, so that I can only be reached through iMessage on my iPhone using my Apple ID email address. However, I can't delete my cell phone (settings > Messages > Send and receive) because it is grayed and checked by default. I'm only new conversations iMessage on my iPhone with my Apple ID email address.

    Any ideas on how I can avoid being reached on my cell phone on iMessage on my iPhone? Support the Apple docs say I have to remove my phone number from my Apple ID, but I won't do that because I 2FA activated on this number.

    Thanks for your help!

    iPhone 5, iOS 9.3.2

    MacBook Pro mid-2010, OS X 10.11.1

    Basically, you can't.

  • remove my number of contacts

    Hello my number suddenly appeared as a contact above all contacts and I can't remove it.

    I'm going to 'Edit' at the top right and then 'delete' at the bottom of the screen, but nothing happens.

    Also I tried "settings > phone > my number ' and put something else, but nothing is happening.

    What can I do?

    I forgot to mention that this happened when I added the "icloud" as an application reader, I don't know if it of relevant or not.

    Also, I use another language in the iphone, so I'm sorry if the commands I mentioned is in conformity with the provisions are named slightly differently.

  • mixed number a string does not properly

    I am in a position some parameters of oscillsocpe. I need to write these values in text file which I use write to the spreadsheet, but what happens is that it is always written zero value to the file, debugging I found that converting the number to a string, it is still writng zero string indicator, separately, I used that number to fractional chain indicator and then it shows always zero out of string I'm not why it's happening.

    Attached below is the code.

    It's simple. When you convert a read nsec, you must of course greater precision of 2 decimal places. Why do you not use number of exponential or engineering.

  • Convert number to string in function, spell training?

    I saw a few posts asking how to convert a hexadecimal string to a number, but I saw nothing in regard to going the other way - how to convert a new number into a hexadecimal string. Can TestStand convert a number to a hexadecimal string in a function?

    Here's what I'm trying to do (Locals.CryTuneHex is a string containing a hexadecimal value represented and Locals.Freq_Meas is a digital):

    Locals.CryTuneHex = Val ("0 x" + Locals.CryTuneHex) + round (((320000 - Locals.Freq_Meas)/0.065),4)

    or in simpler terms:

    Locals.HexString = Locals.DecimalNumber

    I need to convert the right side of the equation (which is a decimal number) to a hexadecimal string in order to to store in the string variable on the left side of the equation. Is this possible? In my view, there are a Str() operator to convert to a string, but I need in hex, not only a string representation of the decimal number.

    Thank you!

    Pass a format to Str, like the people of the country. HexString = str (Locals.Number, "%x")

    To play with format strings, create a local number, right-click and select the Digital Format, and then select Hex to Type and watch how the format string varies when you change options.

  • How to remove empty lines of string?

    I have a string like:

    "

    Error

    "

    And I Don t get to compare it with the string "Error".

    How to remove these blank lines?

    Thank you!

    There is a function called Trim programming spaces > String > Trim spaces.

    Check if it works for you.

  • CONVERT NUMBER TO STRING

    Hello

    Anyone know how to convert a number to a string

    for example I need to convert the number 1-9999 to a string, but the number less than 1000 in the string should appear as 0900 900, the number hit 1000should add a befor 0 in front of the number in the string.

    can someone show me how to do?

    Like this

    The VI below is in Labview 8.0

  • Number of strings with decimal

    Hello community,

    I would like to convert numbers to the string with decimal separators. So if the number is 52351 then the string I need is 52 351

    Another example 18653284.9653235 becomes 18,653,284.9653235

    What would be the best way to do it?

    Thank you!

    Read this thread: https://forums.ni.com/t5/LabVIEW/comma-separator-for-large-numbers-how-to/m-p/2123090/highlight/true...

    Not the first person to wish for this idea.

  • Actual number of string in table

    Hello

    I want to read real numbers to a text file and put them in a table.

    The problem is that the precision of the number is not displayed. It is converted in full.

    There is an example similar to http://forums.ni.com/t5/LabVIEW/Text-string-to-integer-array-with-keeping-order-in-text-string/m-p/1...

    I couldn't transfer the number in the array of strings in a digital picture.

    Thanks in advance.

    Mittani

    Replace the string decimal number by the fractional equivalent conversion

Maybe you are looking for