Else IF in a script sql condition

Hi Experts,

I have a scenario where I have to use if condition in a sql script, i.e. If a first condition is true, then run a particular file otherwise run a next file.

Could you please let me know how we can do it.

Example:

I need to check a table_name in user_tables as:

Select count (*) in the v_test from user_tables where table_name = 'Table_test ';

IF v_test = 1 then

@create_index.sql;

on the other

@create_table.sql;

END IF;

Thanks in advance

Hi rv,.

Maybe something like this can help you

/*
-- @2010_02_05_choice.sql
create table kk_test ( wert varchar2(5), text varchar2(30));
insert into kk_test values ( '1', 'single value');
insert into kk_test values ( '2', 'One of three');
insert into kk_test values ( '2', 'Two of three');
insert into kk_test values ( '2', 'Seven of Nine');
*/
set feedback off term off
COL result  NOPRINT NEW_VALUE kk_script
SELECT DECODE( COUNT(*), 0, 'show_message',
                         1, 'single_script',
                            'do_choice'     ) result
  FROM kk_test
 WHERE wert like '%'|| &1 || '%';                                                       

set feedback on term on
@&kk_script

And who are my results:

< sys:op13@syse > @2010_02_05_choice.sql 1
here we are in single_script.sql

< sys:op13@syse > @2010_02_05_choice.sql 2
here we are in do_choice.sql 

< sys:op13@syse > @2010_02_05_choice.sql 3
here we are in show_message.sql

Coming from an old thread MOSC Condition running script on the choice of the user of the result of a query

concerning
Kay

Tags: Database

Similar Questions

  • Script: SQL UPDATE

    Hi all

    Im trying to send a simple update (delete), but Im getting errors constantly. It seems to me that the ' are the problem, but I don't know how I can send these settings thru - that I have to pass the name of the location. Or maybe its something else...

    Script:

    Query = "" "delete from tdata_temp4 where partname = '?'. » » »

    params = [["LOCATION"] fdmContext]

    print fdmAPI.executeDML (query, params, False)

    fdmAPI.commitTransaction)

    Error:

    2015-06-19 19:58:02, 115 MORTALS [AIF]: error in Comm.executeJythonScript

    Traceback (most recent call changed):

    File '< string >", line 524, executeJythonScript

    File "D:\FDMEE\/data/scripts/custom/asdsad.py", line 3, in < module >

    print fdmAPI.executeDML (query, params, False)

    SQLException: java.sql.SQLException: [FMWGEN] [SQLServer JDBC Driver] Invalid parameter bindings.

    2015-06-19 19:58:02, 122 FATAL [AIF]: error in CommProcess.executeCustomScript

    Traceback (most recent call changed):

    File '< string >", line 59, in executeCustomScript

    File '< string >", line 482, executeCustomScript

    File '< string >", line 524, executeJythonScript

    File "D:\FDMEE\/data/scripts/custom/asdsad.py", line 3, in < module >

    print fdmAPI.executeDML (query, params, False)

    SQLException: java.sql.SQLException: [FMWGEN] [SQLServer JDBC Driver] Invalid parameter bindings.

    2015-06-19 19:58:02, 180 FATAL [AIF]: COMM error run a custom Script

    Thank you in advance!

    Vuk

    Hello

    you don't need quotes to place parameters in parameterized queries Jython.

    Query = "" "delete from tdata_temp4 where partname =?" » »

    params = [["LOCATION"] fdmContext]

    print fdmAPI.executeDML (query, params, False)

    fdmAPI.commitTransaction)

  • Case in SQL condition does not return the values as expected

    Hello gurus of PL/SQL,.

    SELECT amd.brkr_nm, amd.brkr_sym, AMD.MINORITY_FLG, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
    WHEN atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY - CASE THEN
    WHEN AMD BOX. MINORITY_FLG = 'Y' THEN
    CASE WHEN atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY THEN 'Done' ELSE 'InDirected.
    END
    ANOTHER "NA".
    END
    ELSE ' 0'
    END
    AS Direction_Method
    Of
    alloc_tran_det_fact atdf,
    ACCESS_METHOD_DIM AMD

    But it returns me the 0 value in the Direction_Method field. But when I checked the values in DB then my first condition (atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY)
    second condition (AMD. MINORITY_FLG = 'Y') and third (atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY) condition of all them have passed, then it should show the value as indicated, but it is shwoing the '0' value only in the Direction_Method column.

    Kindly help me.. .am I missing something?
    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production. I can't create the test data in the database, I did not have the required privileges to make :(

    Kindly help me, thnanks in advance for your time and your comments

    Published by: user555994 on May 24, 2012 02:00

    could be a space or case (upper or lower case). Try:

    /* Formatted on 2012/05/24 16:00 (Formatter Plus v4.8.8) */
    SELECT amd.brkr_nm, amd.brkr_sym, amd.minority_flg, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
           CASE
             WHEN trim(upper(atdf.comm_brkr_dim_key)) = trim(upper(amd.access_method_dim_key))
               THEN CASE
                     WHEN trim(upper(amd.minority_flg)) = 'Y'
                       THEN CASE
                             WHEN trim(upper(atdf.exec_brkr_dim_key)) = trim(upper(atdf.comm_brkr_dim_key))
                               THEN 'Directed'
                             ELSE 'InDirected'
                           END
                     ELSE 'NA'
                   END
             ELSE '0'
           END AS direction_method
      FROM alloc_tran_det_fact atdf, access_method_dim amd
    
  • Script SQL Compact database in SQL Server 2008r2

    I am able to open the .sdf (SQL Compact Database) in Microsoft SQL Server 2008r2, but when I right click on the database, it won't let me preview the data, or the database script, so I can create a .mdf file

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Script Sql to run in the background

    Hi guys,.

    I will carry out two unix machine sql scripts by connecting through sqlplus in two sessions of PuTTY, I need to run the scripts background is there a way to run outside the sh script execution.

    SQL > @test.sql

    .

    .

    .

    Another session

    SQL > @test1.sql

    .

    .

    .

    actutally I need to run the sql in the background scripts so that my putty session will not cut

    Assuming that this is really what you want to do, use screen sessions.

    This puts the interactive session of ATS in the background, allowing you to reconnect to the it (another putty session, or of the same) to a later date to check the results manually intervene, etc.

    Install the screen on the server as root:

    yum-y install screen

    As the launch of PuTTY user session screen:

    screen

    Then start your session of sqlplus, script execution, etc.-, then press ALT-D to disconnect from the session.

    Start at any number of additional screen sessions.

    To list the sessions:

    Screen - ls

    To join your putty for a screen session session:

    session - dr

    Lose your PuTTY connection does not screen sessions you started. You can go home, in the Office VPN, mastic fire upwards and reconnect to sessions of your screen.

  • Using the shell script sql variable

    OS: Oracle Linux 5.10

    DB Oracle 11.2.0

    I have need to query the database and assign the return value to a variable of shell, but it does not work.

    create table imr_env (key varchar2(1000), value varchar2(1000) ;
    insert into imr_env values('TblspcUsagePct','90');
    commit;
    

    Here is the shell script:

    #!/bin/bash
    echo "in script"
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 ; export ORACLE_HOME
    ORACLE_SID=IMR1 ; export ORACLE_SID
    export PATH=$PATH:$ORACLE_HOME/bin
    
    pct=`sqlplus -S app/manager <<END
           set serveroutput on
           declare
              output_val number ;
           BEGIN
              select value into output_val from imr_env where key = 'TblspcUsagePct' ;
              dbms_output.put_line('output_val: ' || to_char(output_val)) ;
           END ;
           /
           exit;
    END`
    
    ## another sqlplus connection, use $pct in the where clause
    
    echo "var value is $pct"
    
    

    Here is the result:

    SQL> ./test.sh
    in script
    var value is 
    
    output_val: 90
    

    Why isn't the shell variable is populated with the value retrieved from the database?

    I need to use $pct in another query that will be storage spaces that are at least 90% full.

    I had to change to a korn shell - I couldn't get the "READ" command in shell or bash.

    But it is not only "READ" command:

    SQL > select * from IMR_ENV;

    THE KEY VALUE

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

    TblspcWarningLimit 90

    TblspcUsagePct 50

    SQL > exit

    Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    $ cat test.sh

    VAL = $(sqlplus-S test/test)<>

    Set feedback off

    set the position

    Select (value) from imr_env, including the key to_number = "TblspcUsagePct";

    Select (value) from imr_env, including the key to_number = "TblspcWarningLimit";

    "exit";

    EXPRESSIONS OF FOLKLORE

    )

    set $VAL

    Echo $1

    Echo $2

    $./test.sh

    50

    90

    $ echo $SHELL

    / bin/bash

    $

  • call scripts sql from a trigger

    I use Oracle Data Miner 11 g in Windows 8. I want to create a trigger that will instantiate some sql scripts when it is executed (that is, whenever I try to insert update a record)
    Relaxation where will call sql scripts. The whole purpose of this is to make some process when I add tuple in the table. Can someone please help me with the correct syntax for it?
    Thank you! ~

    I'm doing some data on my set of data mining techniques. I want to run the data mining process every time I add a new tuple (i.e. record) or update.  For the data extraction process, a script is called that makes data mining and stores the result in a table. That's why I came up with a solution to trigger which in my opinion; would be the perfect way to launch the script and perform the tasks of trigger (on the infeed table) too. The goal is to automate the script to data mining.  Here's my clear understanding?

    No - your 'understanding' is NOT clear or correct.

    1. a trigger runs as PART of a transaction. It was NOT what happens in the trigger and my never be, committed in the database.

    2. that means that the session LIKE NO other can see that data and a script will not be able to access these data until it was committed.

    3. a trigger and the transaction can be rolled back and restarted several times, or can be rollbacked and terminated without a commit never happening.

    4. If all the data your script would be given mine must already exist in the database BEFORE your races and even trigger.

    So these scripts must be a completely separate WORK that run AFTER any validation occurs and the data you want to "mine" actually exist.

    NONE of this is appropriate to be initialized by a trigger, because as I said above, the relaxing activity may not even engaged.

    You must create some PL/SQL (or other) code that controls the steps that must be taken

    1 insert/update data - including your stuff to trigger if there is

    2 validate this transaction

    3 run a DBMS_SCHEDULER job to run if necessary batch files/scripts.

  • Script SQL Developer runs all the lines

    I have a group of scripts that I want to execute in the order since a main script.  I created a file referencing these scripts as follows below.  My problem is that when I run this script (via F5 or another script referencing it), it runs only the first line and stops.  I have excluded questions with my references to file by changing the order - always the first runs and stops.  I have tried such as displayed below and with a semicolon; to separate each command.  I have scoured the web and can not find any reason why it does not work.  Each of the scripts listed below contains multiple statements separated by a; that wraps a file to a NAS where he is picked up by our external file transfer program.  It all works properly - the only thing that I have problems with using 1 script to call several files and run them in order.

    Any help is greatly appreciated!

    @EMSTATUS.sql

    @EMPLOYEE.sql

    @HREMPUSF.sql

    @HRHISTORY.sql

    @HRSUPER.sql

    @JOBCLASS.sql

    @JOBCODE.sql

    @PAACTREAS.sql

    @PAEMPLOYEE.sql

    @PAEMPPOS.sql

    @PCODES.sql

    @PCODESDTL.sql

    @PERSACTHST.sql

    @PRDISTRIB.sql

    @PRPAYCODE.sql

    @PSGRELATE.sql

    @REVIEW.sql

    Hello

    Note You can place in the path: Tools-> preferences-> database-> spreadsheet-> "path select default to search scripts"


    I tried the following:

    c:\tmp\calltwoscripts. SQL

    set echo on

    @zone.sql

    @ztwo.sql

    Select 'done' double.

    c:\tmp\zone. SQL:

    Select 'one' double;

    c:\tmp\ztwo. SQL:

    Select 'two' SQL;

    executed in a worksheet:

    @c:/tmp/calltwoscripts.sql

    Output:

    > @zone.sql

    > select "one" of the double

    'A '.

    -----

    one

    > @ztwo.sql

    > Select "both" of the double

    "TWO".

    -----

    two

    > select 'done' double

    'DONE '.

    ----------

    Finish

    The things that could go wrong:

    Your scripts could end with "quit".

    Paths can mingle: try (not @) and full of paths.

    You could hit a code issue, the spreadsheet does not recover-in which case you should get the output on the command line and or Page logging of messages in the view.

    Turloch

    SQLDeveloper - team

    http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-Debug-Info-for-Oracle-SQL-Developer/

    http://totierne.blogspot.co.UK/2013/07/user-check-on-sqldeveloper-worksheet.html

  • Out of the script SQL more not displaying is not operating in SQL Developer

    Hello

    I have a script el_ccn.sql with the content...

    Select count (*) in the NCC;

    When I run @el_ccn.sql in a SQL Developer the option worksheet dependencies execute the Script (F5)

    all that is displayed is

    COUNT (*)
    ----------

    When I run it in SQL, I see...

    COUNT (*)
    ----------
    2285

    1 selected line.

    I can 'open' the script and then run OK but I test it before implementing more complex SQL script files, so would like to know if this is possible with SQL Developer. A colleague does not have access to SQL over, so I need to check they can do this with SQL Developer before you start a COMPUTER call helps bring sqlplus.

    There must be something simple, that I do not correctly.

    Thank you, Elaine

    Published by: E Langford on 5 June 2013 01:57

    Hi Elaine,.

    Whenever unexpected behavior occurs is not a known bug, I always suspect corruption in the migrated settings / preferences of the user. Is the best way to test this
    1. export definitions of connection, you do not want to lose.
    2. Add the following line to your sqldeveloper.conf file...

    AddVMOption - Dide.user.dir =

    3. restart the product without migrating all settings

    The conf file is \sqldeveloper\sqldeveloper\bin\sqldeveloper.conf. IDE.user.dir must be available in writing being given to whatever your username has privileges (and preferably on a drive off-grid) and must be different from the value default SQL Developer uses (for example, on Windows 7, C:\Users\Developer \AppData\Roaming\SQL).

    If el_ccn.sql script works correctly with the own user preferences, by default, then you can return to the editing of the conf file, delete or rename the folder system3.2.20.09.87 in the ide.user.dir original or default folder, and then restart the product, migrate or does not migrate settings from a previous installation as desired.

    Hope this helps,
    Gary

  • SQL workshop: Possibility to download scripts SQL from a URL (DropBox)

    Hello
    I'm under Oracle APEX in the Amazon Cloud and access it through an iPad. the iPad (on devices not jail-broken) browsers have not access to local files. Is there a way workshop SQL can access scripts by using a URL such as a SQL pointing to DropBox? Or would that be an enhancement request?

    Thank you

    Bo

    You can build the URL with just the name of the file.

    I think that the Dropbox URL will always be the same (until the name of the file).

    Something like this:

    declare
         u_rl varchar2(100):= 'http://dl.dropbox.com/u/1234/';
         content_clob CLOB;
    begin
         u_rl := u_rl || :P44_FILE_NAME;
         select httpuritype(u_rl).getclob() into content_clob dropbox from dual;
    end;
    

    Published by: taepodong on July 30, 2012 19:22

  • Reg - pl sql conditional compilation

    Version details
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - Production
    create or replace package r_dummy_pkg
    is
         procedure proc_table_doesnt_exist;
         procedure proc_valid;
    end;
    /
    
    show err;
    
    create or replace package body r_dummy_pkg
    is
         procedure proc_table_doesnt_exist
         is
              l_count number;
         begin
              select count(*)
              into l_count
              from doesnt_exist_tbl;
         
         end proc_table_doesnt_exist;
         
         procedure proc_valid
         is
         begin
              dbms_output.put_line('Fine');
         end proc_valid;
    end;
    /
    
    show err;
    SQL> @"H:\Raghu\INDEX\cc.sql"
    
    Package created.
    
    No errors.
    
    Warning: Package Body created with compilation errors.
    
    Errors for PACKAGE BODY R_DUMMY_PKG:
    7/3      PL/SQL: SQL Statement ignored
    9/8      PL/SQL: ORA-00942: table or view does not exist
    SQL>
    Updated the my code using conditional Compilation and she got well compiled
    create or replace package r_dummy_pkg
    is
         $if $$rgh_cc $then
         procedure proc_table_doesnt_exist;
         $end
         procedure proc_valid;
    
    end;
    /
    
    show err;
    
    create or replace package body r_dummy_pkg
    is
         $if $$rgh_cc $then
         procedure proc_table_doesnt_exist
         is
              l_count number;
         begin
              select count(*)
              into l_count
              from doesnt_exist_tbl;
         
         end proc_table_doesnt_exist;
         $end
         
         procedure proc_valid
         is
         begin
              dbms_output.put_line('Fine');
         end proc_valid;
    end;
    /
    
    show err;
    SQL> @"H:\Raghu\INDEX\cc.sql"
    
    Package created.
    
    No errors.
    
    Package body created.
    
    No errors.
    SQL>
    I tried activation conditioning block, but I don't understand how
    SQL> alter package r_dummy_pkg compile plsql_ccflags='rgh_cc:true';
    
    Warning: Package altered with compilation errors.
    
    SQL> show err
    ERROR:
    ORA-00907: missing right parenthesis
    
    
    SQL> alter package r_dummy_pkg compile body plsql_ccflags='rgh_cc:true';
    
    Warning: Package Body altered with compilation errors.
    
    SQL> show err
    ERROR:
    ORA-00907: missing right parenthesis
    Is something wrong with the alter, I published? How to make part of the compiled code?

    First of all I don't know how you get:

    SQL> alter package r_dummy_pkg compile plsql_ccflags='rgh_cc:true';
    
    Warning: Package altered with compilation errors.
    
    SQL> show err
    ERROR:
    ORA-00907: missing right parenthesis
    

    I can't reproduce on 10.2.0.4.0 and 11.2.0.1.0:

    SQL> alter package r_dummy_pkg compile plsql_ccflags='rgh_cc:true';
    
    Warning: Package altered with compilation errors.
    
    SQL> show err
    SP2-0564: Object "r_dummy_pkgplsql_ccflags='rgh_cc:true'" is INVALID, it may not be described.
    SQL> 
    

    For errors you need:

    SQL>  select  text
      2    from  user_errors
      3    where name = 'R_DUMMY_PKG'
      4  /
    
    TEXT
    -------------------------------------------------------------
    PL/SQL: ORA-00942: table or view does not exist
    PL/SQL: SQL Statement ignored
    
    SQL> 
    

    Now ' is something wrong with the alter, I published? How to make part of the compiled code? ».

    There is nothing wrong with the ALTER statement. Since when the package was compiled for the first time $$ rgh_cc has not been set to TRUE proc_table_doesnt_exist procedure was not part of compilation - just part of the source code. But as soon as you issue ALTER that defines $$ rgh_cc was true package is recompiled and procedure proc_table_doesnt_exist becomes a part of the compilation. Obviously the compilation fails because the proc_table_doesnt_exist procedure reference table while no.

    SY.

  • crontab linux script sql together

    Dear gurus

    has an idea a tips to share with us, how can we achieve the task

    -a test data export machine rcvd dump another machine, available from landfills (.dmp files)
    -daily schedule of basic crontab define who should run a scrpt script needs to follow the task (EI jobs together and daily.sh script file created bash file crontab)
    -by which it drops oracle say schema1, schema2, schema3 patterns (in the available sql script)
    -then create scemas, assign roles for authorization that was (in the available sql script)
    -After that, 2 diagrams need integration script (in sql available)

    can someone give ideas of things, as I have experience with crontab, sql, bash script, but I have never combine. How to call and take this task. normally, I used to do this manually every week. I want to do Automation where I watch all the newspapers, once top say things made step by step

    Kind regards
    Shah

    learn786 wrote:
    Dear gurus

    has an idea a tips to share with us, how can we achieve the task

    -a test data export machine rcvd dump another machine, available from landfills (.dmp files)
    -daily schedule of basic crontab define who should run a scrpt script needs to follow the task (EI jobs together and daily.sh script file created bash file crontab)
    -by which it drops oracle say schema1, schema2, schema3 patterns (in the available sql script)
    -then create scemas, assign roles for authorization that was (in the available sql script)
    -After that, 2 diagrams need integration script (in sql available)

    can someone give ideas of things, as I have experience with crontab, sql, bash script, but I have never combine. How to call and take this task. normally, I used to do this manually every week. I want to do Automation where I watch all the newspapers, once top say things made step by step

    Kind regards
    Shah

    I have a blog combining crontab, shell script and sql
    http://kamranagayev.WordPress.com/2009/02/23/using-Oracle-UTL_FILE-UTL_SMTP-packages-and-Linux-shell-scripting-and-cron-utility-together-2/

  • call a script sql with one parameter of another

    I would like to call a sql script that takes a single parameter (& 1)... but it doesn't.
    It looks like (first.sql):
    begin
    for cv in (select table_name from all_tables where owner='IBIS') loop
            @my_script.sql cv.table_name;
    end loop;
    end;
    but when I run it, I got an error:
    @first.sql;
    old   9: spool &1..cob replace
    new   9: spool cv.table_name.cob replace
    old  10: select '       05 DBUFF-' || '&1' || '-1.' from dual;
    new  10: select '       05 DBUFF-' || 'cv.table_name' || '-1.' from dual;
    old  12: from all_tab_cols where table_name='&1' and substr(column_name,1,3)<>'SYS';
    new  12: from all_tab_cols where table_name='cv.table_name' and substr(column_name,1,3)<>'SYS';
    old  13: select '          05 ' || '&1' || '-ROWID          PIC X(18).' from dual;
    new  13: select '          05 ' || 'cv.table_name' || '-ROWID          PIC X(18).' from dual;
    What is missing?

    Kind regards...

    Hello

    The trick is to generate a sql script with all your calls to internal scripts and their parameters.

    For example, my script is internal countTableIndex.sql :

    select 'Table &1 has got '||count(*)||' indexes.' from user_indexes where table_name='&1';
    

    And here's my script outside coutnIndex.sql :

    set serverout on pages 0 lines 100 feed off time off verify off define on tab off trimspool on trimout on termout on termout off
    spool cmd.sql
    begin
    for cur in (select table_name tab from user_tables) loop
         dbms_output.put_line('@countTableIndexes.sql '||cur.tab);
         null;
    end loop;
    end;
    /
    spool off
    set termout on
    @cmd.sql
    exit;
    

    As you can see, it generates a file cmd.sql containing internal script calls and ultimately calls the script cmd.sql.
    In my example schema scott after the execution, the cmd.sql file contains:

    @countTableIndexes.sql DEPT
    @countTableIndexes.sql EMP
    @countTableIndexes.sql BONUS
    @countTableIndexes.sql SALGRADE
    @countTableIndexes.sql TOTO
    

    Here is the result of my machine:

    [oracle@Nicosa-oel test19_parameterizedSqlScripts]$ sqlplus -s scott/tiger@my11g @countIndex.sql
    Table DEPT has got 1 indexes.
    Table EMP has got 1 indexes.
    Table BONUS has got 0 indexes.
    Table SALGRADE has got 0 indexes.
    Table TOTO has got 0 indexes.
    
  • Script of condition in the drop-down list

    If the drop down menu 'A' is not, and the 'B' drop is

    also no. 'C' becomes visible.

    I need help with a script for this all I can get to is:

    If

    (xfa.event.newText == 'Yes') { }

    Yes.presence

    = "visible."

    }

    else {

    Yes.presence

    = 'invisible '.

    }

    and it does not work for this instance.

    First of all, put values on the items in drop-down list in the 'Binding' palette 'subject: ' tab

    As:

    Yes bound value = 1

    No has a bound value = 0.

    Then,

    Update on the event 'exit' on the two drop-down lists, then choose 'JavaScript' for script language:

    //////////////////////////////

    If (this.rawValue == "1" & B.rawValue == '1')

    {

    C.Presence = "visible";

    }

    on the other

    {

    C.Presence = "invisible";

    }

    //////////////////////////////

    change the first line of refenence A.rawValue when you add this script in the drop-down list box B.

    That should do it.

    Good luck

    Stephen

  • Script SQL Developer

    Dear friends,

    I need migrating from SQL Server to Oracle. Please kindly guide me, how I can use the script of the options available in SQL Developer.

    I clicked on tools-> Migration-> third party data Capture offline - > Create Database Scripts to capture and saved scripts to a folder.

    It generated 4 files as shown below:

    OMWB_OFFLINE_CAPTURE.bat
    Properties.SQL
    SQLServer2005.OCP
    SS2K5_BCP_SCRIPT.bat

    How can I use them? I should run then in Oracle or SQL Developer?

    I tried to click on the file (OMWB_OFFLINE_CAPTURE.bat) bat and nothing happened. Not sure if I made the right choice.

    Please guide me. I just need to move the tables as well as its data.

    Thank you very much.

    Kind regards

    Nith

    Tutorials on OTN show how to make a screenshot in offline mode. (http://www.oracle.com/technology/products/database/sql_developer/files/obe.html)
    and follow the Migration of the SQL Server.

    Sue

Maybe you are looking for