Using a list created in a SQL query in

I have solved this before, but can't remember how, it will be a simple

I created a list of a CFLOOP, let's call it MYLIST = 'us, ca, to the, en.

I need to run a CFQUERY SQL on this list, WHERE xyz IN (MYLIST)

The problem is that it will not be read correctly. Can someone tell me the right command to make the SQL read the list properly on a basis of individual billing

Thank you

Mark

list of cfqueryparam = 'yes '.

Tags: ColdFusion

Similar Questions

  • How to bind the user interface component to a display object that is created from a SQL query

    I use JDeveloper 11.1.1.2.

    I created a method in my ApplicationModule to create a dynamic ViewObject instance based on a 'voCode"passed in:

    public loadVO (String voCode) {} ViewObject

    ViewObject viewObject = findViewObject (voCode);
    If (viewObject == null) {}
    viewObject = createViewObject (programCode);
    }
    return viewObject.
    }

    I created a Client interface for this method and updated the control data of the ApplicationModule.

    The "Oracle JDeveloper 11g Handbook", I should be able to create a link from the tree and an executable methodIterator to the method of "loadVO" through the control of AOS data.

    I tried to manually add the binding to the definition of the page my page jspx, I like to see if I can replace an existing binding with this new binding.
    I was not able to add the link under "tree to create binding" 'Root Data Source' both 'Tree level rules' must be specified.
    I was able to specify the root 'Data Source' to point to the "loadVO" and the corresponding parameter, but not able to add a rule.
    When I clicked on the icon "+" to add the rule, anything that allowed me to clarify the rule (if I know which rule I should add).

    How can I bind the module of the application 'loadVO' method while it is exposed in the data control to provide data to a UI like PivotTable component?

    On the other hand, I was able to create the "methodIterator" first for the method 'loadVO' AM but I wasn't able to create a tree link to refer to the "methodIterator".
    Is it possible to call the method loadVO with the value of specific setting via the "methodIterator" of a bean method?

    Published by: pyin_amec on January 25, 2010 15:57

    I've corrected the subject line and change my question to better reflect the problem I tried to solve.

    Published by: pyin_amec on January 26, 2010 07:41

    Hello
    It worked for me... I created an inputtext area where I can enter a query and run...
    It could be that useful...

    AM Impl

         public void createVoWithQuery( String pQuery )
         {
    
              ViewObjectImpl vo = null;
              if( findViewObject( "DemoVo" ) != null )
                   findViewObject( "DemoVo" ).remove();
    
              vo = ( ViewObjectImpl )createViewObjectFromQueryStmt( "DemoVo", pQuery );
              //  vo.setKeyAttributeDefs( new int[]{0} );
              vo.executeQuery();
         }
    
         @Override
         protected void prepareSession( Session session )
         {
              super.prepareSession( session );
              if( findViewObject( "DemoVo" ) == null )
                   createViewObjectFromQueryStmt( "DemoVo", "Select 1 from dual" );
         }
    

    Page Def

    
        
          
        
        
      
      
        
          
    
          
        
        
          
        
        
          
            
          
        
      
    

    page

    
              
                
                  
                    
                      
                    
                  
                
              
              
              
                
                  
                    
                  
                  
                
              
            
    
  • need to customize SQL query verification

    Friends,

    I need to create a custom sql query. Please see the following scenarios:

    I want to audit all users who are successfully and unsuccessfully to logon to my oracle database. Tahts why I enbale 2 following options:

    SQL > session audit every time that successful;
    Verification succeeded.

    SQL > noaudit session each time it fails.
    Verification succeeded.

    And I found all the users using the following sql query:

    "Select username, to_char (timestamp," MM/DD/YY HH24 ' ") Timestamp, obj_name, returncode, action_name of."
    "dba_audit_trail where action_name in ('LOGIN', 'LOGOUT') order by timestamp desc '.

    USERNAME TIMESTAMP OBJ_NAME RETURN_CODE ACTION_NAME
    -------- --------- -------- ------------- -----------
    RIPON 14-12-08 11:51 0 LOGON
    SHIPON 14-12-08 11:50 1017 LOGON
    RIPON 14-12-08 11:50 1017 LOGON


    Here, return_code = 1017 means the user cannot successfully loged on
    and, return_code = 0 the average user can successfully connected


    Now, I want to custom to the query that is readable to others easily. As

    I want to add a column, which meets the follwing If condition.

    Return_code = 0, then the column is 'USER CORRECTLY CONNECTED ON' and
    If return_code = 1017, then the column displays "USER NOT CORRECTLY CONNECTED ON".


    can someone please help with this?

    Edited by: shipon_97 14 December 2008 13:28

    A CASE statement is probably the easiest option

    select username,
           to_char(timestamp,'MM/DD/YY HH24:MI') Timestamp,
           obj_name,
           returncode,
           action_name,
           (CASE WHEN return_code = 0 THEN 'User logged in successfully'
                 WHEN return_code = 1017 THEN 'User specified an invalid password'
                 ELSE 'User failed to log in for some other reason'
                 END) reason_desc
      from dba_audit_trail
     where action_name in ('LOGON','LOGOFF')
     order by timestamp desc
    

    Note that any nonzero return code indicates a failed to connect. ORA-01017 indicates an invalid user name or password, which is probably the most common error.

    Justin

  • Is there a way to get a 'default' DataTemplate based on a simple sql query?

    Hi all

    I wonder if there is a way to produce a default value of the DataTemplate (or at least the dataStructure of the model portion).

    I like to call a trigger beforeReport to fill in the data for the report as such, I have to use dataTemplate instead of a simple SQL query, "select * from table_name". I have more than 50 columns on the report so I was hoping that I could not manually built a dataTemplate (or at less the part of dataStructure) for each report just be able to call a trigger.

    Thanks in advance for your ideas.
    Kind regards
    Yahya

    You need not define the cases you need the xml structure to be automatically decided by BEEP.

    
         
              
              
         
         
              
                   
              
         
    
    

    This datatemplate allows you to get the following structure

    
    
    
    
    
    ..
    ..
    
    
    
    
    ..
    ..
    
    
    
    
    ..
    ..
    
    
    
    
    ..
    ..
    
    
    /LIST_ROW>
    
    
  • Using a Variable to create the SQL query

    I need to create a "dynamic" update query I want to hold the meeting of the command in a variable and then refer to the query variable.

    Example:

    < cfquery name = "fred" datasource = "mydb" >
    Update db_table_name set
    PBname = "Fred Flintstone",
    pbnumber = ' 555-555-1234. '
    pbage = 25
    where recnum = 24
    < / cfquery >

    I would like use this code:
    < cfset upst = "pbname ="Fred Flintstone", pbnumber =' 555-555-1234, pbage = 25" > ".
    < cfquery name = "fred" datasource = "mydb" >
    Update db_table_name set
    #upst #.
    where recnum = 24
    < / cfquery >

    When I run the present, I get the following error message:
    Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] syntax error (missing operator) in query expression "Fred Flintstone".

    The SQL is:
    Update db_table_name set pbname = "Fred Flintstone", pbnumber = "555-555-1234", pbage = 25 where recnum = 24

    I know it's hard to see, but the "are 2' No 1". I have no idea why Coldfusion (or perhaps the ODBC driver?) puts the 2nd "in the command that causes the errors.

    Anyone can shed some light on this subject?

    While it is a simple example, my application is much more complex. I have over 50 fields in the update and based on changes to the values of the form, I may need to update all fields, some fields or NO fields.

    Can I use < cfif > test if all the fields have changed and if so, include them in the update command, but if NONE of the fields have changed, I update the command vacuum and therefore get an error. I want to avoid having to test changes twice (once to determine if I do the update and twice to perform the update).

    Thank you
    Mike.

    CF automatically escapes single quotes, he must preserve them


    Update db_table_name set
    #PreserveSingleQuotes (upst) #.
    where recnum = 24

    Ken

  • How to use the multiple selection list values in sql query

    Hi all
    In the search form, I have a multiselect llist tell (P3_STATUS) and I want to have a query using this element and fetch documents
    How to do a sql query based on the selection of the value of this element.
    SELECT "W"."START_DT" "Start Date",
           "W"."CAMPAIGN_CODE" "Campaign Name",  
           "W"."MKT_CHANNEL" "Channel",
           "W"."MKT_SUB_CHANNEL" "Sub Channel", 
           "W"."PROMO_CODE" "Promo Code",
           "W"."TRACKING_CODE" "Tracking Code",
           "W"."TFN" "TFN",
           "W"."STATUS" "Status",
           "W"."CAMPAIGN_CODE" "Edit"
           FROM 
             "WC_MKT_CAMPAIGN_DS" "W"
      
           WHERE 
         (MKT_CHANNEL = decode(:P1_CHANNEL,'%null%',MKT_CHANNEL,NULL,MKT_CHANNEL,:P1_CHANNEL))
       AND
    (MKT_SUB_CHANNEL= decode(:P1_SUB_CHANNEL,'%null%',MKT_SUB_CHANNEL,NULL,MKT_SUB_CHANNEL,:P1_SUB_CHANNEL))
    AND *STATUS = decode(.................*
    Please could someone help me on this?

    Thanks in advance
    Robert L

    Try to change your selection of status to

    AND INSTR(':'||:P3_STATUS||':',':'||STATUS||':') > 0
    
  • How to create a resource of query using CS component?

    Hi all

    Can someone please let me know how we can create a resource request (OOTB assettype WCS) using the option element CS?

    Assettype - Query, OOTB assets can be created using two methods: 1) using the SQL query and 2) using CS elements.

    I searched a lot of guides and has been unable to find even a small example or a snippet of code that must be used in an element cs while creating a resource request.  Even guide the developer gives example of using only one SQL query when creating a resource request and did not mention anything on the assets of the query to the CS elements.

    It would be very very useful for me and most of them if an example can be provided. Thanks in advance.

    Kind regards

    Praveen

    Hi Praveen,

    In the attribute menu editor drop-DOWN using a resource request, you need the following:
    -The SQL code in the assets of the query should return a column 'value '. For example:select name as value from shippingtype

    -If the data type of the attribute using the attribute Editor is 'good', the query should also return property IDs. For example:select name as value, id as assetid from Product where...

    See Designing Attribute Editors - 11g Release 1 (11.1.1.8.0)

    Your original CallQuery was essentially correct except that you must

    1. return a value column (and possibly an id column)

    2. no loop on the results. The attribute editor will loop on the results.

    3. set the name of the list the variable 'list '.

    For example

    <%
      String sqlQuery = "select name as value from Query";
    %>
    
    

    Note that this will return a list of the names of the assets of the query, which may or may not be what you need.

    I hope this helps.

    Kind regards

    Stephan.

  • DA on updatable report items Sql query using the class

    Request Express 4.2.5.00.08

    10-11 g Oracle

    I have a page, so it has a link/button when he clicks then modal region will appear. Modal region has a as a table (Type SQL Query (updateable report)). All work very well so far.


    However, I've now added some complex things.

    for example. My region is based on the query of SQL Type (editable report).

    SELECT id, name of family, Traghetti, area, d_date, start_time, End_time, displacement, role of table where id =: P10_ID;

    I can also add a new line of course.

    My problem is, (point) Shift display based on the value of Start_Time point) and so I made sure the class for two items.

    for example, Start_Time (' class = "st_tm" ') and Maj ('class to = "Shift_time" '). Start_Time is based on (LOV) and shift is off the point in the sql query, but change the Start_Time.

    And now, I created the DA.

    1. event: change

    Selection type: jQuery Selector

    jQuery Selector: .st_tm

    Condition: No.

    1. action: set value

    Set type: Expression Javascript

    The JavaScript Expression: $(this.triggeringElement) .val ();

    The element affected: P10_X1 (it is a hidden item)

    2. action: Plsql Code

    Code: start to null; end;

    Page items to submit: P10_X1

    3. action: Plsql Code

    Code: start

    If: P10_X1 between '03' AND '11' then

    : P10_X1: = 'EARLIES ';

    elsif: P10_X1 then '12' and '18'

    : P10_X1: = 'LATES ';

    on the other

    : P10_X1: = 'NIGHTS';

    end if;

    end;

    Page items to submit: P10_X1

    NOW another DA

    Event: change

    Article (s) P10_X1

    Condition (in list)

    value (HASTY, LATES, NIGHTS)

    Action:

    Set type: Expression Javascript

    The JavaScript Expression: $(this.triggeringElement) .val ();

    Affected item:

    Selection type: jQuery Selector

    jQuery Selector:. Shift_time

    Well, I look forward all the above work well, but I'm having a problem.

    If I have more than 1 lines on a modal region and if I change the Start_Time value for a row then MAJ (point) is changing but he effect on all lines.

    I want, if I make the changes on the line line # 2 while only 2 # MAJ (point) must be not performed any other lines?

    Help, please!

    Kind regards

    RI

    I found the solution me thank you.

    I removed all the DA mentioned above and created a new.

    1. event: change

    Selection type: jQuery Selector

    jQuery Selector: .st_tm

    Condition: No.

    Scope of the event: dynamic and light on page load.

    Action (Javascript code)

    ROW_ID = $(this.triggeringElement).attr('id').substr (4);

    If ($(this.triggeringElement). val() > = 03 &. val() $(this.triggeringElement))<= 11)="">

    .Val ('EARLIES') $(«#f11_» + row_id);

    }

    ElseIf ($(this.triggeringElement). > 11 val() & $(this.triggeringElement). val())<= 18)="">

    .Val ('LATES') $(«#f11_» + row_id);

    }

    ElseIf (. val() > $19 (this.triggeringElement)) {}

    .Val ('NIGHTS') $(«#f11_» + row_id);

    }

    also created another DA because I have a disabled report items.

    Event: before the page is sent.

    $('_:_disabled').removeAttr ("disabled");

    and finally created manual process of DML for tabular and everything works fine. (Insert, Update, and delete).

    Kind regards.

  • Passing the value of the SQL query select list

    Hello

    In my application users have in their homepage to a region which has two simple things, a part of LIST SLECT lov function and a BUTTON

    There is also another page which has a normal life to report which shows the employees.


    Homepage the user can select certain number of Department in its 'SLECT-LIST' and click 'open '.


    For example: If the user has selected a DEP_NUM_5 and click on the BUTTON it will be redirected to the page of a report and gets only showed the employees belonging to the Department 5.


    The report page contains a simple SQL query, and I understand that somehow I must pass the value in the SELECT LIST, where I now have the '?


    How can I do this, where should I start?

    Of course I would really appreciate an example of code, if anyone has time to do a.

    
    select "EMP_ID", 
    "EMP_FORNAME",
    "EMP_SURNAME",
    "DEP_NUMBER"
    from EMP E
    where E.DEP_NUMBER = ????????
    
    

    Hi Sozua,

    1. create an item hidden on the page where you have the report.

    I say P2_DEPT_NO

    2 assign to that in your sql query

    select "EMP_ID",
        "EMP_FORNAME",
        "EMP_SURNAME",
        "DEP_NUMBER"
        from EMP E
        where E.DEP_NUMBER = :P2_DEPT_NO
    

    below the area source ther is also an option

    Elements of page to submit-> put this element in this.

    for example;

    Page to submit items: P2_DEPT_NO

    3. change your button

    Action: Redirecting to page of this application

    Page: 2 / / assuming that page 2 is the report page

    Place these items: P2_DEPT_NO

    with these values: & P1_SELECT_LIST.  assuming that selection list is on page 1

    Hope this helps you,

    Kind regards

    Jitendra

  • Can I use session variables in data model BI publisher SQL query?

    Hi Experts,

    We apply security at the level of the BI Publisher 11g data.

    In OBIEE we do so using session variables, so I wanted to just ask if we can use the same session variables in BI Publisher as well
    That is, we can include a where clause in the SQL for the sample data as

    Where ORG_ID = @{biServer.variables ['NQ_SESSION.]} {[INV_ORG']}

    I would like to know your opinion on this.

    PS: We implement security EBS r12 in BI Publisher.

    Thank you

    Read this-> OBIEE 11 g: error: "[nQSError: 23006] the session variable, NQ_SESSION.» LAN_INT, has no definition of value. "When you create a SQL query using the session NQ_SESSION variable. LAN_INT in BI Publisher [ID 1511676.1]

    Follow the ER - BUG: 13607750 -NEED TO be able TO SET up a SESSION IN OBIEE VARIABLE AND use it IN BI PUBLISHER

    HTH,
    SVS

  • use a SQL query in a backing bean

    Hello

    I would like to know how to run an SQL query in a method of bean to support, what is the code I tried, its purpose is to fill in the field "cin" with data from my database, here is the Code:

    public String cb2_action() {}
    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding ("CreateInsert");
    Object result = operationBinding.execute ();
    If (! operationBinding.getErrors () .isEmpty ()) {}
    Returns a null value.
    }
    DCIteratorBinding dciter = (DCIteratorBinding) bindings.get ("PersonneView1Iterator");
    Line row = dciter.getCurrentRow ();
    Statement stmt = this.getDBTransaction () .createStatement (1);
    try {}
    ResultSet rs = stmt.executeQuery ("select max (cin) person");

    While {(rs.next ())}

    row.setAttribute ("cin", rs.getInt (1) + 1);
    }
    } catch (SQLException ex) {}
    ex.printStackTrace ();
    }
    return 'go. '
    }

    at runtime, it gives an error on this line: statement stmt = this.getDBTransaction () .createStatement (1);

    Please check and correct me

    Thanks in advance

    Hello

    Initially, I want to say that this should not be used if you try to get a PrimaryKey that would create serious concurrency problems.

    For example, lets say you want when you create a new employee to define its equal to the max Department DepartmentId.

    We could create a readOnly VO (lets call it MaxDepartmentId) with a query that returns the departmentId max:

    select max(Department_Id) as maxDep from Departments
    

    After that, he must add the VO of MaxDepartmentId as a ViewAccessor in our Vo employees,
    Override the create() method in the EmployeesRowImpl and add the code like this:

    public class EmployeesRowImpl extends ViewRowImpl {
        @Override
        protected void create(AttributeList attributeList) {
            Row r=getMaxDepartmentId().first();
            if(r!=null){
                 Number max=(Number)r.getAttribute("Maxdep");
                 attributeList.setAttribute("DepartmentId", max);
            }
            super.create(attributeList);
        }
    }
    

    That's all.
    If you run this, you'll see that when you create a new employee, it has a default value.

    Gabriel.

  • 'Function SQL Query return' using with Flash graphics

    I created a pl/sql function that returns a SQL query in a varchar2 of this form:

    Select the null link
    -value > < x value
    < value y of Series1 > series 1 label
    < value Series2 y > 2 series label
    < value of y Series3 > series 3 Label
    ...
    ...
    from tablea a
    Join tableb b
    On a.col = b.col
    order of < x value >

    If I call the function of a graphic Flash box series SQL with the Type of Source query "SQL query" value that returns the function like this:

    return functionname (to_date ('30-sep-2010, ' mon-dd-yyyy ""))

    It parses correctly and the page is saved; However, when I run the page I get no output - error messages or another indication of a problem.

    Now, if I call the function in a SQL client, capture the result of the query SQL using the dbms_output and paste that into the box graphic Flash series SQL - change the Source Type of SQL query query - and save the page it works fine when I run it and returns a chart series flash.

    Can anyone suggest either;

    1. what I might have missed or done wrong?
    2. a way to effectively diagnose the problem...

    I tried to use the debugger Apex - what is very nice, indeed - but it provides no information on what might be my problem. I tried to write my own my function debug messages using the apex_debug_message package - nothing...

    Thank you
    Eric

    Hi Eric,.

    Try to pull the source like this:

    begin
       return functionname(to_date('30-sep-2010', 'dd-mon-yyyy'));
    end;
    

    This works very well for me, and if I take the begin-end and the final semicolon from the return statement I get the same behavior as you.

    He doesn't mention in aid of the source (only during the wizard if) this source type must be expressed in this way, but I agree, it would be useful that the tool would validate to this format meets it "Query SQL that returns the function" or give some sort of indication of the sentence. In any case, this should help you will again.

    Hope this helps,
    John

    If you find this information useful, please do not forget to mark the 'useful' or 'correct' post so that others benefit as well.

  • Performance problem on the SQL query that does not use the primary key index

    Hello!

    I have some performance issues on a single SQL query (Oracle 10 g).
    I could solve the problem by using the INDEX indicator, but I would like to know WHY this is happening.

    * Tables *.
    create table jobs)
    ID number (5) not null,
    name varchar2 (100),
    primary key constraint Job_PK (id)
    )
    /
    -Record count: 298

    create table Comp)
    integer ID not null,
    name varchar2 (100),
    primary key constraint Comp_PK (id)
    )
    /
    -Record count: 193

    -Relation m: n
    create table JobComp)
    integer ID not null,
    id_job integer not null,
    id_comp integer not null,
    primary key constraint JobComp_PK (id),
    unique key constraint JobComp_UK (id_job, id_comp),
    Constraint JobComp_FK_Job foreign key (id_job) refers to Job (id),
    Constraint JobComp_FK_Comp foreign key (id_comp) makes reference Comp (id)
    )
    /
    create index JobComp_IX_Comp on JobComp (Cod_Comp)
    /
    create index JobComp_IX_Job on JobComp (Cod_Job)
    /
    -Record count: 6431

    * Ask *.

    When I run this query, the execution plan shows the index using (JobComp_PK and JobComp_IX_Comp).
    No problem.

    Select JobComp.*
    of JobComp
    Join jobs
    on Job.id = JobComp.id_job
    where JobComp.id_comp = 134
    /
    -runs in 0.20 sec

    But when I add the field 'name' of the work table the plan uses full access table to the table of work

    Select JobComp.*, Job.name
    of JobComp
    Join jobs
    on Job.id = JobComp.id_job
    where JobComp.id_comp = 134
    /
    -runs in the 2.70 dry

    With the help of the index

    Select / * + INDEX (Job Job_PK) * /.
    JobComp.*, Job.name
    of JobComp
    Join jobs
    on Job.id = JobComp.id_job
    where JobComp.id_comp = 134
    /
    -runs in 0.20 sec

    * Doubt *.

    This behavior is correct?

    PS. : I tried to recalculate the statistics, but nothing changes:

    analyze the job calculation table statistics.
    /
    change the statistical calculation of index Job_PK reconstruction;
    /
    Start
    dbms_utility.analyze_schema (sys_context ('userenv', 'current_schema'), 'CALCULATE');
    end;
    /

    [of]
    Gustavo Ehrhardt

    Gus.EHR wrote:
    Hello.
    I'm sorry for the plan unformatted.
    The execution time of the querys "without field name' and 'with the field name with suspicion" are equal.
    He has no problem caching, because I get the plans of the sequence different from the querys and repeated the performance. The result is always the same.

    I don't think that there is no problem with oracle crossing LOOP IMBRIQUEE to the HASH JOIN when you include the field name and this should be the expected behavior. But it seems that your WORKING table has a degree of parallelism set against what is causing the query to run in parallel (as JOB table is now available with full table scan, instead of indexed access earlier). It could be that the parallel execution is contributor to extra Runtime.
    (a) do you know why the degree of parallelism on the WORK table has been defined? Do you need it?

    You can see if the following query provides a better response time?

    select /*+ NOPARALLEL(JOB) */ JobComp.*, Job.Name
      from JobComp
      join Job
        on Job.id = JobComp.id_job
     where JobComp.id_comp = 134
    
  • Dependencies of object database by using the SQL query?

    Hi guys,.

    I just see the nice feature to discover the database object dependencies in the APEX (generator application-> app 123-> utilities-> database object dependencies).

    Is there a way to get this dependencies just with a SQL query? Also should I calculate a process in order to get the current dependencies? In APEX, you press a calculate button before you can see the dependencies.

    Thanks in advance and greetings from the Germany

    Steven

    After you import the app Builder application APEX 4500, I saw that the Start button the following process:

    wwv_flow_theme_manager.find_object_dependencies (p_flow_id =>: fb_flow_id, p_page_id-online null);

    In my example I can't use it, only the APEX_050000 user has privileges to use, and you must grant the privileges of your schema, so if you want to use it inside your application. My application must be independent of the schema and the specific database.

    Also it is not recommended to use this procedure because it is one of the procedures not supported that are only used by oracle.

  • How to select only the part by using the sql query

    Hello

    I have the task to retrieve only the integral of the input text by using the sql query.

    The entry is as follows

    Entry for the price setting

    $12.5 (FYI without space)

    $ 12.5 (FYI single space)

    $ 12.5 (double space FYI)

    $12.5 (FYI multiple space)

    $12.5 (FYI multiple space)

    Output expected of 12.5

    The price is the type varchar2 column in the store_price table.

    Please let me know how to achieve this.

    Thanks in advance.

    If this is always the case that you get a $ followed by a number of places, you can use something like:

    Select to_number (ltrim ('$ 12.5',' $')) DOUBLE

    or

    SELECT ltrim ('$ 12.5',' $') OF double

    but take care of your nls_numeric_character settings if they are defined so that, for example, a comma is the decimal separator, you will have a problem.

    HTH

Maybe you are looking for

  • I lost the three buttons - answer, transfer, delete - on the right side of the page. How can I get that back?

    On the right, two thirds of the way to the top of the box, there are three boxes. They were - reply to sender, forward and delete the message. These disappeared suddenly and I don't understand why. I would like to return, but how to make them? I can

  • Beginner LabVIEW - XY graph and audio files

    Hello I am very new to LabVIEW. I'm doing a program as follows: The LabVIEW VI to simulate two temperatures of entry. You can simulate each of them through a random number generator (be sure to keep the numbers in a temperature range of imaginary), o

  • 2 questions about iPF 6400

    (a) my new 6400 turns off automatically after being used for a while. I don't want it to do this. I tried the option that controls this, but I'm not. Can someone tell me where to find this option? (b) if I send a print job to the 6400 when it is off,

  • Rocket video format?

    I'm trying to convert my own personal DVDs directly to Fuze-ready using DVD HD Decrypter files.  I don't want to use the Sansa Media Converter.  I want to be able to convert all the .vobs a big .avi in one step. Can you please give us more informatio

  • Number in the phone book

    HI, the location of the endpoint is not displayed phonebook.