Need help with Substr and Instr

I have a request

Select msg

from table_a

She returned as log messages below

Continued in logid = > 241153 < for oid = > 1621 <, GoC = > 795, bday = > 01.04.2013 <

If the message contains logid = > then I want to display

Continued in logid = > 241151 <

for example

case

When the msg like ' % logid = > %'

then

I tried the combinations of substr and instr, but cannot make it work

Any help appreciated

Gus

SQL >-samples:

SQL > with t as

2 (choose "continued in logid-online 241153< for="" oid="">1621<, gdc="">795, bday-online 01.04.2013")<;' str="" from="" dual="" union="">

3 select "continued in pid-online 241153< for="" oid="">1621<, gdc="">795, bday-online 01.04.2013"<;' str="" from="">

4)

5. Select case-sensitive

6 when instr (str, 'logid') > 0

7 then substr (str

8, instr (str, ' > ', 1, 1) + 1

9, instr(str, '<', 1,="" 1)-instr(str,="" '="">', 1, 1)-1

10                      )

11 another null - or what you want / need

12 end str

13 t;

STR

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

241153

2 selected lines.

Tags: Database

Similar Questions

  • HP laptop: need help with internet and search for things

    whenever I'm on chrome internet explore google ect and go to tab it is says unknown error or no internet connection or anything and just takes me chrome ect. I need help with this im involved in a byod class and my computer won't let me on what whatever usually it just starts out black and white and the seeds I my search request

    Yes it's a Windows 10 and it arrived already installed I'll take the other info now

  • Need help with sizing and save files in batches

    Hi need help with a project.

    I have thousands of vector files that I need size of 350px X 350px, and then place it on a work plan x 600px-600px.

    Then I need to save it to the web as a PNG with a transparent background.

    Could I do a script for? or is there another way to do it in batches?

    I wouldn't have to open them one by one and resize the work plan then the image and save it one by one as that would take forever.

    Any help some suggestions would be greatly appreciated.

    ID do as a series of actions photoshop if the end result is png,

    pro image processor can help you make automatically, if you must resize batch additional... >

    https://sourceforge.NET/projects/PS-scripts/files/image%20Processor%20PRO/v3_2%20betas/

    I think that your work can run in a few steps, but for simplicity, I would like to start / test with a new photoshop action recording

    Open a file, change the size of the image to 350 x 350

    Change the canvas size,

    then save under...

  • Need help with drag and drop

    IM really new to this program as a

    day new hehe and I need help. im making a game quiz and your supposed

    ED to score in the hoop with a circle.  I have the

    codes for the drag and drop for the circle, but I need help with the collision between the Hoop and the ball, I want to go to the image next or gotoandPlay when the ball touches the ring. HELP PLEASE

    You should not attach code to objects.  and you can be able to happen by using a loop.

    Start by removing all the code the suggested by maqro (i.e. as3) and by removing all the code attached to objects.

    use:

    {yourobject.onPress = function ()}

    this.startDrag ();

    }

    {yourobject.onRelease = yourobject.onReleaseOutside = function ()}

    this.stopDrag ();

    {if (this.) HitTest (whatever))}

    do something

    }

    }

  • No support for pse4, don't need help with aid and all the rest. What is a layer? How can I get help PDF from CD? I don't have any idea how to use it. I have a Macbook pro.

    Need help with using pse4 not taken in charge by adobe. How subjects do not available and I have never used something like that. Aide said there is a download but have not been able to do. What is a rookie to do? Y at - it somewhere that I can go to learn how to use PSE4?

    To find out how your problem:

    http://kb2.Adobe.com/CPS/402/kb402107.html

    To get help from the CD files you double-click in the finder, go to PDF help and drag it to the desktop or elsewhere.

  • Urgent need help with find and change / GREP

    I'm working on a manual that contains more than a thousand paintings. I'm not quite familiar with GREP and need help to determine the right to coding/jokers to change the character style to a group of words/numbers on a global basis.

    For example, in Chapter 7, a paragraph style is applied to this line of text:

    TABLE 7.1: T4, T3, FREE T4 AND FREE T4ED

    I need to change "table 7.1:" for a character style and so of suite/so on up to "Table 7,150:"-while leaving the other numbers on the same line unchanged also.»» Is it possible to do without having to manually each table style number?

    gd247 wrote:

    I'm working on a manual that contains more than a thousand paintings. I'm not quite familiar with GREP and need help to determine the right to coding/jokers to change the character style to a group of words/numbers on a global basis.

    For example, in Chapter 7, a paragraph style is applied to this line of text:

    TABLE 7.1: T4, T3, FREE T4 AND FREE T4ED

    I need to change "table 7.1:" for a character style and so of suite/so on up to "Table 7,150:"-while leaving the other numbers on the same line unchanged also.»» Is it possible to do without having to manually each table style number?

    No need for GREP. If "TABLE 7.1:" is text, you can create a nested character style that extends through the colon, in the paragraph style. "

    If "TABLE 7.1:" is created by a numbered list of automatic type paragraph style, you can specify a character style named for the part of automatic numbering in the drop-down menu Style of character, in the Style of numbering of the chips section and numbering of the dialog box Options of paragraph style. If the character style does not exist, you can stay in the operation of paragraph options by choosing 'New Style of character' in the menu. After you create the new style, you're back in the process of definition of the paragraph.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

  • Need help with WRT54G2 and network at home

    OK, I got the WRT54G for a long time and recently updated for the WRT54G2 but now can't access the file sharing and running Windows Vista from Windows XP using wireless.

    Here is my set upward,

    Desktop running Windows Vista connected to the router (that's the computer with folders and printers)

    2 - Windows XP laptop computer connected wireless

    All 3 are defined on the same workgroup can be seen on Windows XP machine when you go to, favorite network, also all can get on the internet.

    Any ideas what the problem might be? I'm guessing a setting somewhere but I was not able to find it.

    After a lot of research and help from this forum, I finally got to work, it was a firewall issue

    Thanks for the replies.

  • Need help with substring data

    Having problems reading CLOB data > 32000 and thought that maybe I can load the data into 3 separate columns less than 32000 k each.

    I tried to substring of a part of it first to see if it worked.

    DDL

    CREATE TABLE 'E406702 '. "" DSR3 ".

    (

    "RECORDNO' CHAR (8 BYTES),

    'DOCUMENTUNIVERSALID' CHAR (32 BYTES),

    "CREATIONDATE" TANK (30 BYTES),

    VARCHAR2 (250 BYTE) "ETL_STATUS."

    VARCHAR2 (4000 BYTE) "DSRDESCRIPTION."

    VARCHAR2 (4000 BYTE) "FORM."

    'REQUESTID' VARCHAR2 (4000 BYTE)

    )

    CONTROL FILE

    DOWNLOAD THE DATA

    INFILE 'DSR2DATA.txt' ' str "\r '"

    ADD

    IN THE DSR3 TABLE

    FIELDS TERMINATED BY ' <: s: >.

    (RecordNo CHAR (8),

    DocumentUniversalID TANK (32),

    CreationDate CHAR (30),

    CHAR ETL_STATUS (250).

    DSRDescription TANK (32700) "substr(:DSRDescription,1,32)."

    SHAPE TANK (4000).

    RequestId TANK (4000))

    Doing this, that I was able to load half of my files.

    Check the newspaper and saw


    SQL * Loader: release 11.2.0.1.0 - Production on sea Feb 19 09:40:40 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Control file: c:\mytest7\DSR3CONTROL.txt
    Data file: DSR2DATA.txt
    Chain of the treatment of the files option: ' str "\r '"
    Bad leadership: c:\mytest7\DSR3CONTROL.bad
    Discard File: none is specified

    (Allow all releases)

    Number of loading: ALL
    Number of jump: 0
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table DSR3, loaded from every logical record.
    Insert the option in effect for this table: APPEND

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    RECORDNO FIRST 8 CHARACTERS
    String endpoint of: "<: s: > '"
    DOCUMENTUNIVERSALID THEN 32 CHARACTERS
    String endpoint of: "<: s: > '"
    CREATIONDATE THEN 30 CHARACTERS
    String endpoint of: "<: s: > '"
    ETL_STATUS THEN 250 CHARACTERS
    String endpoint of: "<: s: > '"
    DSRDESCRIPTION CHARACTER THEN 32700
    String endpoint of: "<: s: > '"
    The SQL string for the column: 'substr(:DSRDescription,1,32) '.
    TRAIN THEN 4000 CHARACTERS
    String endpoint of: "<: s: > '"
    REQUESTID THEN 4000 CHARACTERS
    String endpoint of: "<: s: > '"

    value used for the parameter LINES increased from 64 to 6
    Record 79: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Record 82: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Record 94: Rejected - error on the DSR3 table.
    ORA-01461: can bind to a LONG value only for insert into a LONG column

    Recording 160: Rejected - error on the DSR3 table.

    What is the problem that.   My goal was to make it work and then try to perform the following operations:

    Change the ddl to

    'DSRDESCRIPTION' CLOB,

    'DSRDESCRIPTION1' CLOB,

    'DSRDESCRIPTION2' CLOB,

    Change the control for this file.

    DSRDescription TANK (32700) "substr(:DSRDescription,1,32700)."

    DSRDescription2 TANK (32700) "substr(:DSRDescription,32701,65401)."

    DSRDescription3 TANK (15000) "substr(:DSRDescription,65402,80000)."

    Is - this bad way to go on this subject?

    If you can load data without any problem and read-only is a problem then you can use SUBSTR and concate (|) to read the entire string. Something like this:

    Select substr (DSRDescription, 1, 32000) | substr (DSRDescription, 32001, 64000) | dsr3 substr(DSRDescription,64001);

    or

    with the data as

    (

    Select substr (DSRDescription, 1, 32000) in the DSRDescription of dsr3

    Union of all the

    Select substr (DSRDescription, 32001, 64000) in the DSRDescription1 of dsr3

    Union of all the

    Select substr(DSRDescription,64001) in the DSRDescription2 of dsr3

    )

    Select * from data;

    Onkar

  • I need help with copy and paste does not

    I already asked this question, but no one seems to want to help or does not know the answer.  I can't afford to pay microsoft $49 help. It is their dang opertating system and you would think they would help the customers who buy their products.  Don't think!  Please, someone help me.  I am a graphic designer and need to copy and paste all the time, but it does not work.  It's so frustrating.  Should have bought a Mac time... next.  If no one here can help... where can I go for help?  Here the question again.

    Copy and paste the orders have stopped working in all my software programs (Photoshop, CorelDraw, Corel Painter, etc.).  When I type "copy", or "control c", it crashes and whatever program I use becomes inoperative, as well as all my programs, until I can get the specirfic program to close.  I ran Services.msc to ensure than the Clipboard (did not find Clipboard so I assumed it was changed to album) has been activated, which he was, but when I click on 'Start service' it says "cannot start service on local computer album.  "Error: 1068: the dependency service or group could start. It started several weeks ago and I have not installed new programs during this period.  Only my computer display was the automatic updates of Windows.  It's very frustrating... How can I copy and paste to work.  I got this computer less then 4 months.  Thank you

    To all with this problem, try this:

    http://support.Microsoft.com/kb/309662

  • Need help with charger and power adapter

    I can't find my charger for HP Elitebook 8570p.

    I need the specs for the power supply cable and adapter. If anyone can help. Be good if you have a photo too.

    Hello:

    You can find the necessary information in Chapter 3, pages 51 and 52 of the repair... Articles and part numbers.

    Power cords are classified separately according to the countries.

    http://h20628.www2.HP.com/km-ext/kmcsdirect/emr_na-c03565466-1.PDF

    The 90 Watt adapters are larger that the 65W those, the latter are more suited to travel with.

    If you want the 65 W adapter, then you want this one...

    AC adapter smart HP 65 W (RC/V, EM, 3-wire) HP Part # 693710-001

  • Problem with substr and instr

    create table ztest1 (descrr varchar2 (40));

    values in ztest1
    ===============

    123/09-00
    1234345/66-44
    1/8-00000
    345656676/555555555-222222

    I want to separate the values of slash and hyphen.

    I am able to do first and last as
    123 00 null
    123345 44 null
    1 null 0000
    345656676 null 222222
    With the following query

    can you please advise me where I am doing wrong.

    Select TRIM (SUBSTR (mck.descrr,
    1,
    INSTR (mck.descrr, "/")-1
    )
    ) 'type ',.
    TRIM (SUBSTR (mck.descrr,
    INSTR (mck.descrr, '-') + 1.
    INSTR (mck.descrr, '-', - 1).
    -INSTR (mck.descrr, '-')
    -1
    )
    ) "part2"
    TRIM (SUBSTR (mck.descrr,
    INSTR (mck.descrr, '-',-1) + 1
    )
    ) "T"
    of ztest1 mck

    Thanks in advance.

    You are close with your attempt. You have to find the starting position of the /, then calculate the length between the / amd t he... So:

    SQL> l
      1  with mck as (
      2    select '123/09-00' descrr from dual union all
      3    select '1234345/66-44'  from dual union all
      4    select '1/8-00000'  from dual union all
      5    select '345656676/555555555-222222' from dual)
      6  select TRIM (SUBSTR (mck.descrr, 1, INSTR (mck.descrr, '/') - 1)) "type",
      7         TRIM (SUBSTR (mck.descrr, INSTR (mck.descrr, '/') + 1,
      8                       INSTR (mck.descrr, '-') - INSTR (mck.descrr, '/')-1)) "part2",
      9         TRIM (SUBSTR (mck.descrr, INSTR (mck.descrr, '-', -1) + 1)) "T"
     10* from mck
    SQL> /
    
    type                       part2                      T
    -------------------------- -------------------------- --------------------------
    123                        09                         00
    1234345                    66                         44
    1                          8                          00000
    345656676                  555555555                  222222
    

    @Kim:
    "Regular expressions will be easier," well, that's a little matter to debate ;-) they can get real ugly looking very quickly.

    John

  • Need help with menus and lists

    Hi, first of all, im new here and im hoping to get help

    I have a school assignment to do with dreamweaver, where I need to build an e-book

    Specifically, Ive got a roll more images that I was planning to do a menu bar on

    I was told to use spry, but they help at all.

    I was hopeing that my reversal, buttons could be roles more and a list/menu appears, such as on many sites

    Like this one http://projectseven.com/tutorials/navigation/auto_hide/workpage.htm

    (with a black background which comes down from the roll over image)

    How would I go about this

    I don't have much experience with CSS aswell

    A tutorial or any help would be appreciated

    Thanks in advance

    Arron

    Get rid of the image swaps, they add nothing to your page and the code is horrible.

    Copy and paste your code top table in the page menu above the list.

    Copy and paste your low table code in the menu page below lists.

    Validate your code, it should work.

    Code Validation tools
    ------------------------------------
    HTML - http://validator.w3.org/

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Need help with html and as3 dropdown

    First of all Hello!  I need to create a html for a company Web site. The design that I did is in photoshop... .and I need to create a menu drop-down. The first question is: can I create the drop in flash without having to use html frames? Can I connect one of the menu buttons in an html page so that it loads in the same window of the browser to another html page (If Yes... with what?)?  Please... I need to know... because I prefer simply to apply it in flash rather then html. And the second question is: If the scene in flash can be transparent? Because if I do the menu inside, it will be impossible to match all the dimensions of the stage... and I would like to integrate it in an html page, if possible without the stage color >... Thanks in advance!    Tudor

    For the opening of the pages you wish to study using the navigateToURL() function.  The help documentation provides information abiout it year how to control the appearance of the window as well.

    To make the transparent scene is more than a html one aspect of Flash element, if you can set it to publish it.  The key is to set the wmode paraemter which is located in the "transparent" html embed code  I don't know if all browsers supports this feature, but I think that many are willing to.

  • Need help with jsp and java bean

    A Department has built its own site using jsp. I need to get this up and running through cf7.1

    I created a server instance, so it is separated from the rest of the intranet.
    Basically, I think I need to 'install' the javabean. But don't know how.

    Code added to the web.xml file
    < servlet-mapping >
    controller < servlet name > - < / servlet-name >
    *.do < url-pattern > < / url-pattern >
    < / servlet-mapping >

    The login page is called a link
    127.0.0.1/servlet/controller?page=login

    The jsp code is as Attaché (initial login page)

    There is a file 'LoginBean.java '.

    Now for the error

    jrun.jsp.tags.GetProperty$ NoSuchPropertyException: (/ loginPage.jsp:13) the loginBean bean has no property enteredcustomerid
    at jrun.jsp.tags.GetProperty.init(GetProperty.java:78)
    at jrun.jsp.tags.GetProperty.doStartTag(GetProperty.java:39)
    at jrun__loginPage2ejspe._jspService(jrun__loginPage2ejspe.java:75)
    at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
    at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
    to jrunx.scheduler.ThreadPool$ ThreadThrottle.invokeRunnable (ThreadPool.java:426)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    jrun.jsp.runtime.UncaughtPageException: unmanaged by the exception that is thrown from /loginPage.jsp:13
    at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
    at jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.java:384)
    at jrun__loginPage2ejspe._jspService(jrun__loginPage2ejspe.java:119)
    at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
    at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
    to jrunx.scheduler.ThreadPool$ ThreadThrottle.invokeRunnable (ThreadPool.java:426)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


    Any help please...

    Ken

    Tim,

    I want to thank you for your help on this. If I you never have an event, drinks are on me.

    I created a new server through the cf admin instance, this created all required files files.
    Although the jrun - Web.xml wasn't in the web - inf folder. So I copied to this location and inserted your piece of code.
    I then copied the code from the web.xml file and the web_frim_beans.xml that we have with the application and paste it into the Web.XML of the server instance.
    Then I copied all the files of the classes in the application folder in the folder for the server instance class.
    I copied then only the application files in the cfusion.war file that was created.

    Then, I stopped and restarted the server instance, but because of the case in the login page, it did not work.
    So, I then made changes as you suggest to the loginPage.jsp and the LoginBean.java file.

    Then, I stopped and restarted the instance server again.

    Everything worked as it should.

    Again, thank you.

    Ken

  • need help with hex and handling data extraction

    Hello

    I have able to transmit hexagonal commands on the serial port of my camera and receive responses in hex him successfully. I was able to confirm this by changing the display format to the spell for the control and the indicator. Now, I want to store the portion of the hexagonal received data and use it in my future orders. Example of received data as below:

    0001 1100 0010 E002 6 93 4D7E 2C4D AA66 F00D

    The red blocks will be incorporated in the next command so that when I sent this command it will look like this:

    F00D 0014 2000 0003 0000 0020 77AF E002 6 93 4D7E 2C4D

    In short, send the command and get response, extract and store data in red blocks, then send different control that contains the data that is stored. Everything is in hexadecimal format. Question is how can I extract/store the bytes wanted to and then rebuild a hex command containing these bytes? Can I convert it to normal string, byte array, or hexagonal table? If we use the latest methods of 2 conversion, I need to ensure that the zeros are not lost.

    I enclose my VI. Please take a look and help to provide a solution.

    Thanks in advance.

    Here, s what I had in mind (LabVIEW 2010):

Maybe you are looking for

  • SharePoint

    I work in the accounts payable Department and we are currently using SharePoint to store our provider electronic bills.  It scans the document and is assigned a number.  Then we enter the information for the invoice on a page of data, and then match

  • multiple HP laserjet paper feed 1020

    I have owned HP laserjet 1020. I was wondering the buffer of separation move vertically when I print only 1 page. Currently, my printer makes noise "TOC TOC TOC" as the printer was printing only 1 page. I had a lot of problem with the multiple and ca

  • A security update cumulative for the ActiveX for Windows Vista (KB973346) cannot install stop bits since 15 July 09

    Hello I am using Vista Home Basic, but receive an error code: A security update cumulative for the stop bits ActiveX for Windows Vista (KB973346) Installation date:? 22 /? 08 /? 2009 12:32 Installation status: failed Error details: Code 80242FFF Upda

  • I have no sound after upgrading Windows XP to Windows 7.

    change window 7 AUDIO drop OR SOUND CARD windows xp I try to change xp (office) of the window to window 7. audio does not work. How can I put back my old camera audio back.vinyl ac 97 codec combo driver (wdm) in window 7

  • KB2926765 Windows Vista Ultimate 64-bit won't install

    Hello I hope someone can help me on this Patch Tuesday arrived for this month (may 2014) I got this KB2926765 update but it could not install.  All other updates arrived installed correctly. I did a clean boot and tried to install the update automati