PHP to get the result of a selection list

Hello, I have searched for a solution to get the value selected in a list, then pass this value in a database table and display the value.

Is there a php for this solution?

Here's a Javascript solution that I found:

< p > select a new car in the list. < /p >

< select id = "Desproges" onchange = "myFunction ()" >

< option value = "Audi" > Audi

< option value = "BMW" > BMW

< option value = "Mercedes" > Mercedes

< option value = "Volvo" > Volvo

< / select >

< p > when you select a new car, a function is triggered which displays the value of the chosen car < /p >

< id p = 'demo' > < / p >

< script >

Function myFunction() {}

var x = document.getElementById("mySelect").value;

document.getElementById("demo").innerHTML = "You selected:"+ x; '.

}

< /script >

PHP runs on the server. The only way to use PHP to do what you want to do would be to send the browser to the server, reload the page to the form so that the embedded script can run either to run the script in a new page.

If you do not want to send the form then you should use javascript (Ajax, JSON) any. I don't know how to direct you there. The script that you have shown will do the trick, but you will need to consider further than that.

Tags: Dreamweaver

Similar Questions

  • get the value of a selection list

    I made a request and on a page, I have a selection list filled from a list of values (made with a sql statement select).
    on the same page, I have a report made after a select statement.

    How can I did... when I select an item in the selection list in the report show me the item that is selected in the select list

    example:
    Select list: select name of EMP

    List of reports:
    Select * from emp;

    When I click on the selection list and chose a name of the employee in the report show me the first name, middle name, address and everything in emp.

    I tried to use emp.name = 'selectlist.value' and it gives me the invalid number.
    tried with the selection list with submit but still without work.

    can someone give me an ideea? How the current value of the selection list can be put in select condition of a statement or something to do all this?

    Thank you

    E-mail: [email protected]
    name: Andrei


    a quick description

    Page rendering
    Regions
    Point of view: Page (1) template body

    * Report: emp (10)

    Display: Position of the region 01

    * HTML: EMP1 (20)
    * Report: search (30)

    Elements
    Region: research

    * 10: P4_X select list


    Lists of values

    * EMP_name



    is an element of the region of report research.
    search source report is select name, address from emp;
    and the list of values is select name from emp;

    Andrei,

    Change your selection of P4_X list and make a list of selection with Submit. Now edit the report in the form query

    SELECT name, first name, address of the emp, whose name is nvl(:P4_X,name);

    I hope this helps.

    Thank you
    Manish

  • Get the result of the procedure

    Hi all

    I have a procedure using storeb from the collection in an object of type as:

    create or replace type calc_type as object
    (
    field1 number,
    field2 number,
    field3 varchar2);
    
    create or replace type calc_table as table of calc_type;
    
    procedure make_calc_sched(v_id in number, v_user_id in varchar2) is 
    
    table_calc calc_table;
    begin
      select s.id, s.price, s.desc
      bulk collect into table_calc
      from tableA s
      inner join tableB d on d.id = s.id
      --.....
      
    end;
    

    How can I get the result of the procedure?

    procedure make_calc_sched(v_id in number, v_user_id in varchar2, v_table in out ????) is
    

    I plan to put up-to-date and inserts using the FORALL sentence.

    Can I use slider?  Maybe is a better way to do it.

    With the help of Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0

    Thank you

    I think I got it:

    procedure make_calc_sched(v_id in number, v_user_id in varchar2, v_table out calc_table) is 
    
    begin
      select calc_type(s.id, s.price, s.desc)
      bulk collect into v_table
      from tableA s
      inner join tableB d on d.id = s.id
      --.....
    
    end;
    

    I'll look to materialize views more later. Someone at - it examples?

    Best,

  • Need to get the result of the required format

    Hi all

    I'll have the data in a table below:

    IDNUM1num2
    1555555
    2123345
    3456567
    4666666

    IDNUM1num2
    1555555
    2123345
    3456567
    4666666

    and they need to get the result as below:. Help, please...

    IDNUM
    1555
    2123
    2345
    3456
    3567
    4666

    Thanks in advance...

    Hello

    So, instead of having 2 columns on 1 row, you want to have 1 column on 2 rows.  It's just that UNPIVOT:

    SELECT DISTINCT

    ID, num

    D

    UNPIVOT (num

    FOR the label IN (num1, num2)

    )

    ORDER BY id, num

    ;

    It is more effective than the UNION, because it requires only 1 pass through the table.

  • Taking a lot of time to get the result of the query

    Hi all

    The query below takes a long time for results

    select vs.task_name, count(*) fallout_count  from provco.view_stage_history vs
     where record_type in ('TASK')
      and task_name like 'Op-%'
      and vs.line_of_business = 'OPTIONLESS'
    --  and vs.task_due_date > ((sysdate - 146)) and vs.task_due_date is not null
    --  and vs.order_due_date > ((sysdate - 146)) and vs.order_due_date is not null
      and vs.fallout_date > ((sysdate - 146)) and vs.fallout_date is not null
    --  and vs.assignment_date > ((sysdate - 146)) and vs.assignment_date is not null
    --  and upper(vs.install_country_code) like 'US%'
      and vs.ban is not null
    --  and vs.task_name not in ('ASR-Assignment', 'SOR-Assignment')
      group by vs.task_name order by fallout_count desc;
    

    Its takes an hour to get the result. You will find the description of the table and the index below

    CREATE TABLE "PROVCO"."VIEW_STAGE_HISTORY" 
       ( "TASK_ID" NUMBER NOT NULL ENABLE, 
      "ASSIGNMENT_DATE" TIMESTAMP (6) NOT NULL ENABLE, 
      "LINE_OF_BUSINESS" VARCHAR2(30 BYTE) NOT NULL ENABLE, 
      "ORDER_ID" NUMBER NOT NULL ENABLE, 
      "ORDER_NUMBER" VARCHAR2(128 BYTE) NOT NULL ENABLE, 
      "ORDER_VERSION" VARCHAR2(15 BYTE) NOT NULL ENABLE, 
      "ORDER_TYPE" VARCHAR2(25 BYTE), 
      "TASK_NAME" VARCHAR2(60 BYTE) NOT NULL ENABLE, 
      "FALLOUT_DATE" TIMESTAMP (6), 
      "JEOP_CODE" VARCHAR2(64 BYTE), 
      "ERROR_CODE" VARCHAR2(64 BYTE), 
      "ERROR_DESC" VARCHAR2(1000 BYTE), 
      "WORKGROUP" VARCHAR2(30 BYTE), 
      "WORKPOOL" VARCHAR2(50 BYTE), 
      "USER_ID" VARCHAR2(32 BYTE), 
      "RECORD_TYPE" VARCHAR2(40 BYTE) NOT NULL ENABLE, 
      "ASSIGNMENT_TYPE" VARCHAR2(40 BYTE), 
      "ORDER_DUE_DATE" TIMESTAMP (6), 
      "COMMIT_DATE" TIMESTAMP (6), 
      "TASK_DUE_DATE" TIMESTAMP (6), 
      "SEED" VARCHAR2(255 BYTE), 
      "BAN" VARCHAR2(100 BYTE), 
      "ORDER_STATUS" VARCHAR2(64 BYTE), 
      "PROJECT_ID" VARCHAR2(20 BYTE), 
      "CUSTOMER_NAME" VARCHAR2(128 BYTE), 
      "CIRCUIT_ID" VARCHAR2(53 BYTE), 
      "SENSITIVITY_LVL" VARCHAR2(10 BYTE), 
      "BANDWIDTH" VARCHAR2(8 BYTE), 
      "WORK_STEP" NUMBER, 
      "MARKETING_APPROVAL_DATE" TIMESTAMP (6), 
      "INSERTED" TIMESTAMP (6), 
      "UPDATED" TIMESTAMP (6), 
      "INSTALL_COUNTRY_CODE" VARCHAR2(3 BYTE), 
      "SOLD_COUNTRY_CODE" VARCHAR2(3 BYTE), 
      "UPSTREAM_ORDER_NUMBER" VARCHAR2(15 BYTE), 
      "SAR_ID" VARCHAR2(15 BYTE), 
      "DUE_DATE_TYPE" VARCHAR2(4 BYTE), 
      "HOTCUT_IND" VARCHAR2(3 BYTE), 
      "MARKET_SEGMENT" VARCHAR2(50 BYTE), 
      "CNTL_TERM" VARCHAR2(25 BYTE), 
      "SVC_ORD_TYPE" VARCHAR2(40 BYTE), 
      "BLENDED_IND" VARCHAR2(1 BYTE), 
      "RELATED_ORDERS" VARCHAR2(100 BYTE), 
      "TERM_ID" VARCHAR2(20 BYTE), 
      "SUB_SVC_ORD_TYPE" VARCHAR2(40 BYTE), 
      "LAST_TASK_NAME" VARCHAR2(40 BYTE), 
      "PRE_OA_STATUS" VARCHAR2(40 BYTE), 
      "TSP_CODE" VARCHAR2(12 BYTE), 
      "ORDER_CATEGORY" NUMBER, 
      "CHANGE_CATEGORY" NUMBER, 
      "COUNTRY_CODE" VARCHAR2(2 BYTE), 
      "RESELLER_ID" VARCHAR2(19 BYTE), 
      "STATUS_CODE" VARCHAR2(32 BYTE), 
      "STATUS_CATEGORY" VARCHAR2(32 BYTE), 
      "PROVISIONING_LOCATION" VARCHAR2(32 BYTE), 
      "INSTALLED_LOCATION" VARCHAR2(32 BYTE), 
      "DATE_ORDERED" TIMESTAMP (6), 
      "CUSTOMER_NAME_ABBR" VARCHAR2(8 BYTE), 
      "CPE_IND" VARCHAR2(1 BYTE), 
      "CUSTOMER_PON" VARCHAR2(20 BYTE), 
      "PRODUCT_ID" VARCHAR2(20 BYTE), 
      "ASR_PON" VARCHAR2(16 BYTE), 
      "ASR_PON_VER" VARCHAR2(3 BYTE), 
      "ASR_TYPE" VARCHAR2(3 BYTE), 
      "ASR_TRAN_TYPE" VARCHAR2(1 BYTE), 
      "PARTNER_CARRIER_ID" VARCHAR2(8 BYTE), 
      "PREMISE_SEQUENCE_NUMBER" VARCHAR2(3 BYTE), 
      "EXPEDITE_IND" VARCHAR2(6 BYTE), 
      "ORDER_SOURCE" VARCHAR2(40 BYTE), 
      "SERVICE_REQ_ID" VARCHAR2(40 BYTE), 
      "SUB_ORDER_VALUE" VARCHAR2(50 BYTE), 
      "SUB_ORDER_TYPE" VARCHAR2(15 BYTE), 
      "PROV_OWNER" VARCHAR2(32 BYTE), 
      "TASC_OWNER" VARCHAR2(32 BYTE), 
      "DM_OWNER" VARCHAR2(32 BYTE), 
      "ORDNBR_TYPE" VARCHAR2(128 BYTE), 
      "WORK_ID" NUMBER, 
      "GARM_TYPE" VARCHAR2(50 BYTE), 
      "USER_TASK_DUE_DATE" TIMESTAMP (6), 
      CONSTRAINT "VIEW_STAGE_HISTORY_PKY" PRIMARY KEY ("TASK_ID", "ASSIGNMENT_DATE")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "TBS_PROVCO_IDX"  ENABLE, 
      SUPPLEMENTAL LOG GROUP "GGS_211360" ("TASK_ID", "ASSIGNMENT_DATE") ALWAYS
       ) SEGMENT CREATION IMMEDIATE 
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 
     NOCOMPRESS LOGGING
      STORAGE(INITIAL 524288 NEXT 524288 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "TBS_PROVCO_DAT" ;
    
    
      CREATE INDEX "PROVCO"."VIEW_STAGE_HISTORY_IDX5" ON "PROVCO"."VIEW_STAGE_HISTORY" ("ORDER_NUMBER", "TASK_NAME") 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "TBS_PROVCO_IDX" ;
    
    
      CREATE INDEX "PROVCO"."VSH_INSERTED_IDX" ON "PROVCO"."VIEW_STAGE_HISTORY" ("INSERTED") 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "TBS_PROVCO_IDX" ;
    
    
      CREATE INDEX "PROVCO"."VSH_LOB_OT_ON_IDX" ON "PROVCO"."VIEW_STAGE_HISTORY" ("LINE_OF_BUSINESS", "ORDER_TYPE", "ORDER_NUMBER") 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "TBS_PROVCO_IDX" ;
    
    
      CREATE INDEX "PROVCO"."VSH_LOB_TN_IDX" ON "PROVCO"."VIEW_STAGE_HISTORY" ("LINE_OF_BUSINESS", "TASK_NAME") 
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS 
      STORAGE(INITIAL 131072 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "TBS_PROVCO_IDX" ;
    

    Explain the plan of the query is

    SQL> explain plan for
      2  select vs.task_name, count(*) fallout_count  from provco.view_stage_history vs
     where record_type in ('TASK')
      3    4    and task_name like 'Op-%'
      5    and vs.line_of_business = 'OPTIONLESS'
      6  --  and vs.task_due_date > ((sysdate - 146)) and vs.task_due_date is not null
      7  --  and vs.order_due_date > ((sysdate - 146)) and vs.order_due_date is not null
      8    and vs.fallout_date > ((sysdate - 146)) and vs.fallout_date is not null
      9  --  and vs.assignment_date > ((sysdate - 146)) and vs.assignment_date is not null
     10  --  and upper(vs.install_country_code) like 'US%'
     11    and vs.ban is not null
    --  and vs.task_name not in ('ASR-Assignment', 'SOR-Assignment')
     12   13    group by vs.task_name order by fallout_count desc;
    
    
    Explained.
    
    
    SQL> select plan_table_output from table(dbms_xplan.display('plan_table',null,'typical cost bytes'));
    
    
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Plan hash value: 3788003769
    
    
    ------------------------------------------------------------------------------------------------------------
    | Id  | Operation                     | Name               | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    ------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT              |                    |   191 | 10505 |       |   136K  (1)| 00:27:24 |
    |   1 |  SORT ORDER BY                |                    |   191 | 10505 |  1536K|   136K  (1)| 00:27:24 |
    |   2 |   SORT GROUP BY NOSORT        |                    |   191 | 10505 |       |   136K  (1)| 00:27:24 |
    |*  3 |    TABLE ACCESS BY INDEX ROWID| VIEW_STAGE_HISTORY | 21528 |  1156K|       |   136K  (1)| 00:27:21 |
    |*  4 |     INDEX RANGE SCAN          | VSH_LOB_TN_IDX     |   229K|       |       |  1474   (1)| 00:00:18 |
    ------------------------------------------------------------------------------------------------------------
    
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
    
       3 - filter("VS"."BAN" IS NOT NULL AND "RECORD_TYPE"='TASK' AND "VS"."FALLOUT_DATE">SYSDATE@!-146)
       4 - access("VS"."LINE_OF_BUSINESS"='OPTIONLESS' AND "TASK_NAME" LIKE 'Op-%')
           filter("TASK_NAME" LIKE 'Op-%')
    
    
    18 rows selected.
    

    the view_stage_history table has 19504509

    Please let me know somehow that we can speed up the query above.

    Thank you

    Mani

    How much time does it take if you suggest a full table scan?

  • I have run this query to get the result as below, but, even if my query is running fine, that I do not get the expected result.

    I'm looking for only column compare to my same target table as a table source.

    My query:


    Select case when column_name_s is null and column_name_t is not null

    then "alter table GRADE_CONVERSION drop | column_name_t | ';'

    When column_name_s is not null and column_name_t is null

    then "alter table GRADE_CONVERSION add | column_name_s | ' ' || data_type_s | « ; »

    else 'alter table modify GRADE_CONVERSION | column_name_t | ' ' || data_type_t | « ; »

    alterations of the end

    from (select s.column_name column_name_s, t.column_name column_name_t,

    s.data_type data_type_s, t.data_type data_type_t

    (select column_name, column_id, data_type

    of all_tab_cols@database

    where owner = 'erhan.

    and table_name = "GRADE_CONVERSION."

    + 1

    full outer join

    (select column_name, column_id, data_type

    of all_tab_cols@database

    where owner = 'sarigul.

    and table_name = "GRADE_CONVERSION."

    + 6

    on s.column_name = t.column_name

    )




    Tables:



    Target table: table GRADE_CONVERSION in sarigul@database


    LETTER_GRADEVARCHAR2 (2)
    GRADE_POINTNUMBER (3.2)
    MAX_GRADENUMBER (3)
    MIN_GRADENUMBER (3)




    Table source: Table GRADE_CONVERSION in erhan@database

    LETTER_GRADEVARCHAR2 (2)
    GRADE_POINTNUMBER (3.2)
    MAX_GRADENUMBER (3)
    MIN_GRADENUMBER (3)
    CREATED_BYVARCHAR2 (30)
    CREATED_DATEDATE
    MODIFIED_BYVARCHAR2 (30)
    MODIFIED_DATEDATE



    want to see output that is similar to this * (please ignore the names of column here it's just a clear example :))


    ALTER table Target_table change BOOK_ID Varchar2 (4);

    ALTER table Target_table I addSBN_10 Varchar2(13), null;

    ALTER table drop TITLE Target_table;

    Erhan_toronto wrote:

    1.I used src.nullable src_nullable and tgt.nullable tgt_nullable but only show Yes as below: but want to see the result as not null or null

    ALTER table TEST_TARGET change the NUMBER of MAX_GRADE (3, 2) Yes

    Ok. So it's all about the Yes and the no decoding to Default Null or Not Null, isn't it?

    So, to test, change one of the table of sample for NOT NULL columns in the source table, and then run the following query:

    with src as
    (
      select src.table_name src_table_name, src.column_name src_col_name, src.data_type src_data_type, src.data_length src_data_len, src.data_precision src_data_precision, src.data_scale src_data_scale,
             src.nullable src_nullable
        from user_tab_columns src
       where table_name = 'TEST_SOURCE'
    ),
    tgt as
    (
      select tgt.table_name tgt_table_name, tgt.column_name tgt_col_name, tgt.data_type tgt_data_type, tgt.data_length tgt_data_len, tgt.data_precision tgt_data_precision, tgt.data_scale tgt_data_scale,
             tgt.nullable tgt_nullable
        from user_tab_columns tgt
       where table_name = 'TEST_TARGET'
    ),
    col_details as
    (
      select src.src_table_name, nvl(tgt.tgt_table_name, first_value(tgt_table_name) over(order by tgt_table_name nulls last)) tgt_table_name,
             src.src_col_name, src.src_data_type, src.src_data_len, src.src_data_precision, src.src_data_scale, src.src_nullable,
             tgt.tgt_col_name, tgt.tgt_data_type, tgt.tgt_data_len, tgt.tgt_data_precision, tgt.tgt_data_scale, tgt.tgt_nullable
        from src
        left outer join tgt
          on (
              src.src_col_name = tgt.tgt_col_name
             )
    )
    select *
      from (
            select case
                    when tgt_data_type != src_data_type or tgt_data_len != src_data_len or tgt_data_precision != src_data_precision or tgt_data_scale != src_data_scale or src_nullable != tgt_nullable
                      then 'alter table ' || tgt_table_name || ' modify ' || tgt_col_name || ' ' || src_data_type || ' (' ||
                      case when src_data_type in ('DATE') then null
                           else
                                case
                                  when src_data_type in ('VARCHAR', 'VARCHAR2')
                                    then nvl(to_char(src_data_len), ' ') || ') '
                                  else  decode(nvl(src_data_precision, -1), -1, null, nvl(to_char(src_data_precision), ' ') || ', ' || nvl(to_char(src_data_scale), ' ') || ')')
                                end
                      end
                      || decode(src_nullable, 'NO', ' NOT NULL', ' DEFAULT NULL')
                    when tgt_col_name is null
                      then 'alter table ' || tgt_table_name || ' add ' || src_col_name || ' ' || src_data_type ||
                      case when src_data_type in ('DATE') then null
                           else
                                case
                                  when src_data_type in ('VARCHAR', 'VARCHAR2')
                                    then nvl(to_char(src_data_len), ' ') || ') '
                                  else  decode(nvl(src_data_precision, -1), -1, null, nvl(to_char(src_data_precision), ' ') || ', ' || nvl(to_char(src_data_scale), ' ') || ')')
                                end
                      end
                      || decode(src_nullable, 'NO', ' NOT NULL', ' DEFAULT NULL')
                   end alter_statement
              from col_details
            )
    where alter_statement is not null;
    

    Erhan_toronto wrote:

    2. when I run below under user sarigul and erhan I get the result as OWNER, TABLE_NAME, COLUMN_NAME DATA_TYPE... I have a link between two users. They have access to two tables.

    • Select * from all_tab_columns

    where owner = 'erhan' and table_name = "TEST_SOURCE."

    • Select * from all_tab_columns

    where owner = 'sarigul' and table_name = "TEST_TARGET."

    Alright. This means that you both users are on the same database. Only change, you will have to do in the above query is so change user_tab_columns to all_tab_columns and add the OWNER predicate respectively with the clause.

  • get the result set in CSV

    How can I get a result set of a table as a comma-separated value? I saw there are dbms_utility.table_to_comma but don't know how to use it.

    For example,
    Select column_name from user_tab_columns where table_name = "TAB1".

    I want to get the result as col1, col2, col3

    I'm using Oracle 11 g.

    Your help is very appreciated. :)

    Hello

    in oracle 11, you can use:

    select
      LISTAGG(column_name,',') WITHIN GROUP (ORDER BY COLUMN_ID) CSV
    
    from
      user_tab_columns
    
    where
      table_name = 'PBCATCOL'
    
    ;
    
    CSV
    ---------------------------------------------------------------------------------------------------------------------------------------------
    PBC_TNAM,PBC_TID,PBC_OWNR,PBC_CNAM,PBC_CID,PBC_LABL,PBC_LPOS,PBC_HDR,PBC_HPOS,PBC_JTFY,PBC_MASK,PBC_CASE,PBC_HGHT,PBC_WDTH,PBC_PTRN,PBC_BMAP,PBC_INIT,PBC_CMNT,PBC_EDIT,PBC_TAG             
    
                                                                                                                                           
    

    Kind regards

    Peter

  • Need to get the result of joing the views dba

    Hello

    need to get the result of the fileds below in a database

    TABLE_NAME NOM_PARTITION NOM_TABLESPACE PARTITION_TYPE (RANGE?) PARTITION_RANGE_CONDITION SPACE_OCCUPIED_AS_OF_DATE (IN GB)

    can I know what are the points of view that I can use and application

    apprecaited for assistance

    Thank you

    Published by: user12266475 on November 2, 2011 11:33

    LONG data type is NOT friendly SQL.
    Consider the following:

    SQL> @long
    SQL> drop table test;
    
    Table dropped.
    
    SQL> create table test (id LONG);
    
    Table created.
    
    SQL> insert into test values(q'[RANGE     TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')]');
    
    1 row created.
    
    SQL> set serveroutput on
    SQL> DECLARE
      2  long_var LONG;
      3  var_var  VARCHAR2(2000);
      4  BEGIN
      5       dbms_output.enable(10000);
      6       SELECT id INTO long_var FROM test ;
      7       var_var := substr(long_var,19,19);
      8       dbms_output.put_line(var_var);
      9  END;
     10  /
    2009-01-01 00:00:00
    
    PL/SQL procedure successfully completed.
    
  • Combine queries to get the result set with max Y

    Hello
    I use forms 6i and db 10.2.0.1.0

    With the query below
    Select ufam_usrgrp,ufam_filegrp,ufam_read,ufam_write,ufam_overwrite,ufam_delete from usr_file_access_master
    Where ufam_ecode = '0004108';
    the result set is
    UFAM_USRGRP     UFAM_FILEGRP    UFA UFA UFA UFA
    --------------- --------------- --- --- --- ---
    MGMNT           CV              Y   Y   Y   Y
    EMPLOYEE        GENERAL         Y   N   N   N
    EMPLOYEE        PERSONAL        Y   N   N   N
    Another query
    Select uul_usrgrp, ufl_file_grp,ufl_read,ufl_write,ufl_overwrite,ufl_delete from usr_usrgrp_lnk,USRGRP_FILEGRP_LINK
    Where usr_usrgrp_lnk.uul_usrgrp = USRGRP_FILEGRP_LINK.UFL_USR_GRP
    and usr_usrgrp_lnk.uul_ecode = '0004108'
    gives the result
    UUL_USRGRP      UFL_FILE_GRP    UFL UFL UFL UFL
    --------------- --------------- --- --- --- ---
    MGMNT           GENERAL         Y   Y   Y   Y
    EMPLOYEE        GENERAL         Y   Y   N   N
    MGMNT           CV              Y   N   N   N
    I need to combine these two queries to get a separate result set with maximum Y

    Like here "MGMNT CV" is repeated in both the result set, but the first has more, then it should come from the combined result set. reverse-case also the same (such as "EMPLOYEE GENERAL")

    So I want to combine the queries so that I get the result as set below
    UserGroup       FileGroup       Rd Wrt Owrt Del
    --------------- --------------- --- --- --- ---
    MGMNT           GENERAL         Y   Y   Y   Y
    EMPLOYEE        GENERAL         Y   Y   N   N
    MGMNT           CV              Y   Y   Y   Y
    EMPLOYEE        PERSONAL        Y   N   N   N
    Please help me to combine these queries

    Published by: Divya on August 14, 2011 21:24
    Changed the result set and the last exit

    NOT TESTED!

    select y.uul_usrgrp,
           y.ufl_file_grp,
           greatest(ufl_read,nvl(ufam_read,' ')) ufl_read,
           greatest(ufl_write,nvl(ufam_write,' ')) ufl_write,
           greatest(ufl_overwrite,nvl(ufam_overwrite,' ')) ufl_overwrite,
           greatest(ufl_delete,nvl(ufam_delete,' ')) ufl_delete
      from (select ufam_usrgrp,ufam_filegrp,ufam_read,ufam_write,ufam_overwrite,ufam_delete
              from usr_file_access_master
             Where ufam_ecode = '0004108'
           ) x,
           (select uul_usrgrp, ufl_file_grp,ufl_read,ufl_write,ufl_overwrite,ufl_delete
              from usr_usrgrp_lnk,USRGRP_FILEGRP_LINK
             Where usr_usrgrp_lnk.uul_usrgrp = USRGRP_FILEGRP_LINK.UFL_USR_GRP
               and usr_usrgrp_lnk.uul_ecode = '0004108'
           ) y
     where y.uul_usrgrp = x.ufam_usrgrp(+)
       and y.ufl_file_grp = x.ufam_filegrp(+)
    

    Concerning

    Etbin

    Edited by: Etbin on 14.8.2011 13:08
    deleted by group

  • How to get the value of a selected character unicode?

    Hi all

    How to get the value of a selected character unicode?

    The content property of a 'Character' InDesign object is a simple Unicode string. For access to the various characters is a basic javascript operation, and a google gives this as a good first result: http://www.w3schools.com/jsref/jsref_charCodeAt.asp

    Therefore, the value of a selected character unicode is

    App.Selection [0]. Characters [0].contents.charCodeAt (0)

  • get the result without Union all the

    < pre >
    WITH GET_BALANCE AS
    (SELECT "CREDIT2' AS TYPE, - 6336.37 AS A AMOUNT OF DOUBLE
    Union of all the
    SELECT 'CREDIT', 8340.52 OF THE DOUBLE
    Union of all the
    SELECT 'CREDIT', THE DOUBLE 609.48
    Union of all the
    SELECT 'CREDIT', 50 OF THE DOUBLE
    Union of all the
    SELECT 'CREDIT', 6336.37 OF THE DOUBLE
    Union of all the
    Select "DEBIT", 628.68 DUAL FROM
    Union of all the
    Select "DEBITORG", 9000 DUAL FROM
    Union of all the
    SELECT 'DEBIT1', DOUBLE 50,81
    Union of all the
    SELECT 'DEBIT2',-679.49 OF THE DOUBLE
    UNION ALL
    SELECT 'DEBIT1', THE DOUBLE 679.49
    UNION ALL
    SELECT 'DEBIT2',-679.49 OF THE DOUBLE
    )

    SELECT sum (debit) debit, sum (credit) in the form of credit, (sum (debit) - sum (credit)) such as (FROM) balance
    SELECT FLAT CREDIT, DEBIT GET_BALANCE 0
    WHERE TO TYPE LIKE 'CREDIT %'
    UNION ALL
    SELECT 0 CREDIT, DEBIT GET_BALANCE PLATE
    WHERE TO TYPE LIKE' FLOW %')

    I got the result;
    credit debit balance
    9000 9000 0
    < / pre >
    But,
    I want to get the result without union all.
    I try sum on the partition by, or group by type...
    can not get the result. you would tell me the other way to get above result

    Thank you

    Published by: Jimmie_M on October 4, 2010 14:59

    Published by: Jimmie_M on October 4, 2010 15:01

    Hello

    Here's one way:

    WITH   got_credit_and_debit     AS
    (
         SELECT     SUM ( CASE
                     WHEN  SUBSTR (type, 1, 6) = 'CREDIT'
                         THEN  amount
                    END
                  )     AS credit
         ,     SUM ( CASE
                        WHEN  SUBSTR (type, 1, 5) = 'DEBIT'
                         THEN  amount
                    END
                  )     AS debit
         FROM    get_balance
    )
    SELECT     credit
    ,     debit
    ,     debit - credit     AS balance
    FROM     got_credit_and_debit
    ;
    

    What type of application is as follows, where the balance is defined as the debit - credit? Usually, it's the opposite: balance = credit - debit.

    You don't absolutely need a subquery:

    SELECT     SUM ( CASE
                WHEN  SUBSTR (type, 1, 6) = 'CREDIT'
                    THEN  amount
               END
             )     AS credit
    ,     SUM ( CASE
                   WHEN  SUBSTR (type, 1, 5) = 'DEBIT'
                    THEN  amount
               END
             )     AS debit
    ,     SUM ( CASE
                WHEN  SUBSTR (type, 1, 6) = 'CREDIT'
                THEN  amount
                   WHEN  SUBSTR (type, 1, 5) = 'DEBIT'
                    THEN  -amount
               END
             )     AS balance
    FROM    get_balance
    

    Published by: Frank Kulash, October 4, 2010 18:15
    Added query replacing without subquery

  • How to get the results of the UK instead of the default USA?

    I live in the United Kingdom and would like to be able to search for UK results. for example, Amazon UK results when I search a product, etc.
    with the option of a search in the world so I don't get the results I want

    To add plugins to search for sites such as Amazon.co.UK and Google.co.uk to Firefox, open this page in Firefox and then search or click the sites that interest you: http://mycroft.mozdev.org/

    When you click on one of the listed search plugins, Firefox will ask you if you want to install it.

    After that, you can open the Firefox Add-ons Manager and click on disable one of the search engine integrated you want to use.

  • [LV-&gt; TS] How to run a SEQ file, get the result (PASS/FAIL) and the report file?

    Hello

    I'm looking for the most obvious and simple, LabVIEW:

    1. start the motor Teststand: FACT

    2. get a list of SEQ files to run: FACT

    3 - loop through the list to run each file follows:<- found="" some="" examples="" but="" i="" have="" some="" trouble="" with="" the="" uimessage="">

    http://zone.NI.com/reference/en-XX/help/370052N-01/tsexamples/infotopics/executing_sequences_using_a...

    4. get the result of the execution of the SEQ:<->

    5 retrieve the XML + name of the generated report file path:<- obviously="" not="">

    http://digital.NI.com/public.nsf/allkb/3D3B2358DF9B786B8625789500549A3B

    http://forums.NI.com/T5/NI-TestStand/getting-report-file-path-location-at-execution-in-TestStand-201...

    Here's my current implementation:

    David Koch


  • Get the result of the sequence by programming

    Hi all

    in my custom operator interface to save the event EndExecution callback to accomplish several final operation.

    What I can't do is to retrieve the result of the sequence ('Success' or 'Failure', exactly the one that is displayed in the default report under the voice "Result USE") using methods or properties API.

    I've tried Execution.ResultStatus property and the SequenceContext.SequenceFailed property, but none of them works.

    How can I get the result of the sequence?

    Thank you

    Process templates are already generating a Message from the user interface "TestingComplete" you can register an event reminder on.  It also transmits the result as part of the parameter string State.  The attached excerpt from LV show what the VI recall may contain to handle the event.  If you need to deal with other UI event codes you can wire the event directly number in the structure box for the 34 decimal 'TestingComplete' event code.

    P.S., the event is the same that Norbert has pointed out, event UIMessageEvent...

  • How to get the result of the test of CVI DLLs in teststand!

    I write a driver dll to test a source, I want to get the tension of world SERVERS (the instrument of the RS) and I used to call DLLs that written by CVI, teststand

    My question is what is the best way I can get the result of the test and show the user to teststand. the code below is fair? When I used to call this dll document, teststand

    "" I just get the result by setting in TS.this is a good meathod, and what should you do in teststand, I put the "outputVoltageV" point to an object?

    /*===========================================================================*/
    / * Function: read voltage/current output * /.
    / * End: this function returns the output and actual output voltage * /.
    / * current instrument.                                      */
    /*===========================================================================*/
    ViStatus _VI_FUNC rsngsm_datReadOutput (ViSession instrSession,
    ViPReal64 outputVoltageV, ViPReal64 outputCurrentA, ViPBoolean statusPeakCurrent)
    {
    ViStatus rsngsm_status = VI_SUCCESS;
    Bruno buf [BUFFER_SIZE];
    ViInt32 retCnt;
       
    FMT (buf, "%s<>
    If ((rsngsm_status = viWrite (instrSession, buf, NumFmtdBytes (), & retCnt))<>
    Return rsngsm_status;
           
    If ((rsngsm_status = viRead (instrSession, buf, 50, & retCnt))<>
    Return rsngsm_status;
    If (Scan (buf, "%s > %f [p2];")) %f [p2]; %i [b2] ", outputVoltageV, outputCurrentA, statusPeakCurrent). = 3)
    Return rsngsm_status;
           
    Return rsngsm_status;
    }

    sean_tan,

    Yes, you just pass a value of digital TestStand (e.g.; locals.number).

    If you use the adapter of the ICB, it might make more sense that you can use the Flexible DLL adapter for this type of function, that you do not use the standard settings of tTestData and tTestError. While TestStand will correctly recognize the function prototype, you want to make sure you that include the type library of your function Panel (you will need to create one if you have not already done so) in settings target of LabWindows / CVI-> type library.

    I hope this helps.

    -Jack

Maybe you are looking for