Select only basic columns of table user_tab_columns

Hi all

How to select onlt those tell of the table columns from all_tab_columns for a specific table 'TAB' with the exception of a few columns.

for example a "TAB" of USE_TAB_COLUMNS table

columns mandatory only K1, col2, col3
not necessary col4, col5

How to write a query to select only required columns, excluding those not requd.

SELECT column_name FROM USER_TAB_COLUMNS
WHERE table_name = 'TAB '.
AND column_name... not in / exists?

In fact, I need to write a dynamic query based on the i / parameter p which will be table_name for the procedure.

something like

-------------------------------------------------------------------------------------
procedure proc_abc
(ip_tab_name varchar2)

Start

SELECT column_name FROM USER_TAB_COLUMNS
WHERE table_name = 'TAB '.
AND column_name... not in / exists?

end;
-------------------------------------------------------------------------------------
Help, please...


Rgds,
Aashish

OK, it works on my database:

create or replace function f1 return sys_refcursor
is
  cols varchar2(300);
  type c1 is ref cursor;
  c c1;
begin
  for rec in
   (select column_name from user_tab_columns where table_name='XXXX'
    and column_name not in ('DT','MSG'))
  loop
    select nvl2(cols,cols||',',cols)||rec.column_name into cols from dual;
  end loop;
  open c for 'select '||cols||' from XXXX where rownum < 2';
  return c;
end;

declare
  cc sys_refcursor;
  l_id integer;
begin
  cc:=f1;
  fetch cc into l_id;
  close cc;
end;

Tags: Database

Similar Questions

  • Is it possible to select only one column of a table for the redaction?

    Hi, converted a Word doc with a table in PDF format.  You will need to write a single column of the table.

    Is it possible to select only one column for the redaction?  When we select and drag downwards, it selects the other columns in the following lines.

    With the help of Acrobat X Pro.  Any help is appreciated.

    Hold down the CTRL key and drag a selection.

  • Cannot select only one column in a double-column PDF

    See the following pdf file example. I can't select a single column. Whenever I have select several lines, I will have two columns. I currently solve this problem by converting the PDF into an image file and load into Acrobat and OCR on it. But this isn't an ideal solution. I wonder if there is a better solution to fix the pdf file so that I can select only one column at a time.

    https://sites.Google.com/site/sharedacrobat/data/double_column.PDF?attredirects=0 & d = 1

    Use Acrobat Pro to tag a PDF file.

    Look at this PDF file:

    http://www.Adobe.com/content/dam/Adobe/en/DevNet/PDF/PDFs/PDF32000_2008.PDF

    to determine what the appropriate marking is, else "smile, be happy" can become remote.

    Look over article 14.

    Alternatives:

    --| Use Acrobat Pro to add tags to the Document. Does Acrobat to make a "best estimate" for marking. OK for a simple PDF content. not ok for other than simple.

    Use a copy of the PDF test to determine if it meets your needs.

    --| If the file creation supports establishing a logical hierarchy of command content (via the built-in tags, titles and styles) and has a proper Tag for output Tagged PDF management then the majority of the work tag can be done from the outset. Creating applications that are 'good things' - FrameMaker, InDesign, Open Office and MS Word.

    There will always be a need to do some post processing with Acrobat Pro.

    If you have InDesign; See:

    http://blogs.Adobe.com/accessibility/2009/07/indesign_accessibility_best_pr.html

    http://www.Adobe.com/accessibility/products/InDesign/

    http://TV.Adobe.com/watch/accessibility-Adobe/preparing-InDesign-files-for-accessibility

    You will notice that the emphasis on tutorials for 'PDF containing the tag' is mainly for 'Accessible PDF'. Accessible PDF is one of the facilities provided by the tag PDF.

    Another is the export of PDF contents in other applications while maintaining the format/layout in the export. A file PDF containing the tag with a well-trained tree not only supports accessibility, it also supports cut/copy - paste & export of content.

    Other tutorials "Accessible PDF" are available on Adobe TV and the Learning Center community user Acrobat.

    http://acrobatusers.com/learning_center

    Be well...

  • Sort by select a choice column of Table ADF display value

    Hi team,

    We use an ADF with EJB application.

    I have an ADF table, which has a choice of a select into it. (The elements of a list of Select choices are filled with a java bean).

    Presetnly, when we perform sorting on this column of the SOC, the table is getting sorted based SOC value not on the label.

    How to sort this column based on the Lable SOC filed.

    Please help us.

    Thank you

    Keshav Ch

    Hi Frank,.

    I took a transitional column in the entity and populated this column with the label LOV value.

    In the file ADF added this column to the table and it is rendered false.

    Set the sortable property of the column to the new column trasient lov.

    Now the sorting will work with the label filed (transitional column)

    Thank you

    Keshav ch

  • Flex 3 - selection of configurable columns for AdvancedDataGrid

    Hello

    I am currently working on the creation of a mechanism by which users select what columns on ADG data should be displayed. I'm currently pulling all the underlying columns in Flex, but wish to provide additional functionality for the end user to select only the columns that are of interest.

    Someone at - it links/code samples for this before I try to reinvent the wheel?

    Thank you all!

    If they are predefined, could not simply bind you the visible attribute to a Boolean variable as such

    
    
    
        
            
        
    
        
        
        
        
            
                
                
                
            
        
    
    
    
  • Create table works, create materialized view only - long column names?

    Hello.

    I have no probs creating a table as well: -.
    CREATE TABLE blah
    (
    DEVICE_ID
    )
    in select
    "Device_ID" AS DEVICE_ID
    "of"sum" Device"@ed_link_3
    where "Device_ID" < 5;


    But when I try to create a materialized view:
    Blah1 CREATE MATERIALIZED VIEW
    (
    DEVICE_ID
    )
    < various materialized view parms >
    in select
    "Device_ID" AS DEVICE_ID
    "of"sum" Device"@ed_link_3
    where "Device_ID" < 5;

    It fails with errors: -.
    ORA-04052: error occurred when searching to the top of the remote object Aggregate.Device@ED_LINK_3
    ORA-01948: length of the name of the identifier (31) exceeds maximum (30)

    Is there a way to get around this?
    Is the problem with the columns of the remote table of device, which I do NOT need to import to have column names that are longer than 30 characters?

    For now, I want only the Device_ID column which is a simple 9 characters long.

    Oh, and the remote database is MySQL.
    I'm uncomfortable with the < parms of materialized view > as they work fine when I choose a different remote table with only short column names.

    Thank you.

    To my knowledge, you have the option
    (a) create view (with shortened column names or only with desired columns if they are already less than 30 char limit) side of mysql
    (b) use dbms_passthrough to force the analysis to be done on mysql (as in the example provided by SY here use dbms_passthrough to create a view )
    However, I prefer to stick to one), because with dbms_passtrhough, you retrieve row by row.

    Best regards

    Maxim

  • only get a single photo on board contact despite the selection of several columns.

    When you select the photo and contact sheet then, there is only a single photo in the upper left column. Unable to get several copies despite the selection of several columns.

    The contact sheet shows only the photos you selected in the library before going to the page of Contacts.

    If you want to have multiple copies of the same image, you need to duplicate this image enough times so that you get the number you want on the contact page.  Select the thumbnail and use the key combination command + D to duplicate the photo.

    Select all duplicate images, and then go to the Contacts option in the printing process.

  • Error when selecting all the columns in the table

    Hi all

    When I write a query by selecting all the columns of the table fromo using * function as well as another new column, I get the error,

    Select *, to_char (hiredate, 'fmday') day

    WCP

    where to_char (hiredate, 'fmday') ('Monday');

    ERROR on line 1:

    ORA-00923: THE KEYWORD not found where expected

    I need all the columns in the table with the column user-defined 'day '. Is there a way I can get the result like this?

    Hello

    padders wrote:

    Alias table to use...

    Or the name of the table, for example

    Select emp.*, to_char (hiredate, "fmday") as day

    WCP

    where to_char (hiredate, 'fmday') ('Monday');

    The bottom line is that * must be qualified (with a table name or alias) when the SELECT clause includes anything else besides *.

  • Select only records where the column values are not all equal to zero

    Hi everyone, it seems so easy, but it has left me speechless on the research in a way that is clean, easy to achieve. I know when someone replies, I'm going to kick me. So, let's assume this is what I have:
    with mytable as (
    select 'Type 1' as itemtype, 'JAN' as monthname, 0 as theval from dual union all
    select 'Type 1' as itemtype, 'FEB' as monthname, 1 as theval from dual union all
    select 'Type 1' as itemtype, 'MAR' as monthname, 5 as theval from dual union all
    select 'Type 1' as itemtype, 'APR' as monthname, 1 as theval from dual union all
    select 'Type 1' as itemtype, 'MAY' as monthname, 4 as theval from dual union all
    select 'Type 1' as itemtype, 'JUL' as monthname, 0 as theval from dual union all
    select 'Type 1' as itemtype, 'AUG' as monthname, 0 as theval from dual union all
    select 'Type 1' as itemtype, 'SEP' as monthname, 1 as theval from dual union all
    select 'Type 1' as itemtype, 'OCT' as monthname, 7 as theval from dual union all
    select 'Type 1' as itemtype, 'NOV' as monthname, 1 as theval from dual union all
    select 'Type 1' as itemtype, 'DEC' as monthname, 2 as theval from dual union all
    
    select 'Type 2' as itemtype, 'JAN' as monthname, 0 as theval from dual union all
    select 'Type 2' as itemtype, 'FEB' as monthname, 0 as theval from dual union all
    select 'Type 2' as itemtype, 'MAR' as monthname, 0 as theval from dual union all
    select 'Type 2' as itemtype, 'APR' as monthname, 0 as theval from dual union all
    select 'Type 2' as itemtype, 'MAY' as monthname, 0 as theval from dual union all
    select 'Type 2' as itemtype, 'OCT' as monthname, 0 as theval from dual union all
    select 'Type 2' as itemtype, 'NOV' as monthname, 0 as theval from dual union all
    select 'Type 2' as itemtype, 'DEC' as monthname, 0 as theval from dual
    )
    select
      itemtype,
      sum (case monthname when 'JAN' then theval else 0 end) as JAN,
      sum (case monthname when 'FEB' then theval else 0 end) as FEB,
      sum (case monthname when 'MAR' then theval else 0 end) as MAR,
      sum (case monthname when 'APR' then theval else 0 end) as APR,
      sum (case monthname when 'MAY' then theval else 0 end) as MAY,
      sum (case monthname when 'JUN' then theval else 0 end) as JUN,
      sum (case monthname when 'JUL' then theval else 0 end) as JUL,
      sum (case monthname when 'AUG' then theval else 0 end) as AUG,
      sum (case monthname when 'SEP' then theval else 0 end) as SEP,
      sum (case monthname when 'OCT' then theval else 0 end) as OCT,
      sum (case monthname when 'NOV' then theval else 0 end) as NOV,
      sum (case monthname when 'DEC' then theval else 0 end) as DEC
    from mytable
    group by itemtype
    order by itemtype
    I need an external application around it or something which will select only 'Type 1'... that is, if all months are each equal to zero, do not include the record in the result set.

    In summary to get a total of zero is not an option, because I could have-15 and + 15 in different columns, in which case, the recording should be displayed.

    Something as simple as... 'not the case (oct = 0 and 0 nov and dec = 0...) at the end is all it seems to me necessary. I thought to add a case for each column clause, but that seems not very effective. Ideas?

    Thanks in advance!
    Mark

    Edit... I know not what follows will work using the MINUS operator, but my actual query is really huge, and I don't want to have to write it twice...
    {code}
    Select
    ItemType,
    sum (case monthname when "JAN" then Val else 0 end) such as JAN,.
    sum (case when monthname 'FEB', then Val 0 otherwise end) by Feb.
    sum (case when monthname 'MAR', then Val 0 otherwise end) like MARS,
    sum (case monthname when "APR" then Val else 0 end) as APR.
    sum (case when monthname 'MAY', then Val else 0 end) either.
    sum (case when monthname "JUN", then Val 0 otherwise end) as JUN.
    sum (case monthname when "JUL" then Val else 0 end) as JUL,.
    sum (case monthname when "AUG" then Val else 0 end) as AUG.
    sum (case monthname when "MS" then Val else 0 end) as MS.
    sum (case monthname when "OCTS" then Val else 0 end) OCT.
    sum (case monthname when "NOV" then Val else 0 end) as NOV.
    sum (case monthname when 'DEC' then Val else 0 end) as DEC
    FROM MyTable
    Group of itemtype

    less

    Select
    ItemType,
    Jan, Feb, mar, Apr, may, June, July, August, Sept, oct, nov, dec
    de)
    Select
    ItemType,
    sum (case monthname when "JAN" then Val else 0 end) such as JAN,.
    sum (case when monthname 'FEB', then Val 0 otherwise end) by Feb.
    sum (case when monthname 'MAR', then Val 0 otherwise end) like MARS,
    sum (case monthname when "APR" then Val else 0 end) as APR.
    sum (case when monthname 'MAY', then Val else 0 end) either.
    sum (case when monthname "JUN", then Val 0 otherwise end) as JUN.
    sum (case monthname when "JUL" then Val else 0 end) as JUL,.
    sum (case monthname when "AUG" then Val else 0 end) as AUG.
    sum (case monthname when "MS" then Val else 0 end) as MS.
    sum (case monthname when "OCTS" then Val else 0 end) OCT.
    sum (case monthname when "NOV" then Val else 0 end) as NOV.
    sum (case monthname when 'DEC' then Val else 0 end) as DEC
    FROM MyTable
    Group of itemtype
    )
    where (oct = 0 & nov = 0 and dec = 0 and jan = 0 and 0 = Feb and mar = 0
    apr = 0 and may = 0 and = 0 jun and Jul = 0 and aug = 0 and Ms = 0
    )
    order of itemtype
    {code}

    Change again... OK, I guess that I am answering my own question here, but I think that by using a WITH to write the main request once clause and then selecting * twice using the MINUS operator between where the second query is where (oct = 0, etc.) is what I need. If anyone has better suggestions, please let me know! Here's the logic of nickname for what I come up with to date...

    {code}
    WITH mainquery as (select all)
    Select * from mainquery
    less
    Select * from mainquery where (oct = 0, nov = 0, etc...)
    {code}

    Thanks again!
    Mark

    Published by: user455268 on March 1, 2012 19:13

    Published by: user455268 on March 1, 2012 19:16

    Hello

    You can do it with a HAVING clause:

    select
      itemtype,
      sum (case monthname when 'JAN' then theval else 0 end) as JAN,
      sum (case monthname when 'FEB' then theval else 0 end) as FEB,
      sum (case monthname when 'MAR' then theval else 0 end) as MAR,
      sum (case monthname when 'APR' then theval else 0 end) as APR,
      sum (case monthname when 'MAY' then theval else 0 end) as MAY,
      sum (case monthname when 'JUN' then theval else 0 end) as JUN,
      sum (case monthname when 'JUL' then theval else 0 end) as JUL,
      sum (case monthname when 'AUG' then theval else 0 end) as AUG,
      sum (case monthname when 'SEP' then theval else 0 end) as SEP,
      sum (case monthname when 'OCT' then theval else 0 end) as OCT,
      sum (case monthname when 'NOV' then theval else 0 end) as NOV,
      sum (case monthname when 'DEC' then theval else 0 end) as DEC
    from mytable
    group by itemtype
    HAVING      MIN (theval)     != 0
    OR      MAX (theval)     != 0
    order by itemtype
    ;
    

    If the values are all 0, then the MIN and MAX will be 0.
    If the MIN or MAX is not 0, the values are all 0.

    This assumes that the combination (itemtype, monthname) is unique, because it is in your sample data.
    If this is not the case, start with a subquery that GROUPs BY itemtype, monthname, so that when you get to the main request, this combination will be unique.

  • access to update only one column in the table?

    Hi all

    My need is to grant access to update only one column c1 in table t1.
    I guess I should use view, could you please give me some examples? Maybe other ideas?

    Hello

    You can grant privileges on individual columns.

    GRANT   UPDATE (c1)
    ON      t1
    TO      grantee_name;
    

    Look in the manual of the SQL GRANT language. Annoyingly, in editions recent manual, GRANT is not indexed, but it is in alphabetical order with all other instructions:
    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_9013.htm#i2155015

  • read only one column in a table

    There is a column not null (i.e. SEQ) in a tabular form that becomes an automatic value of other processes. 2 columns need more user on each line input. I need to do this (SEQ) column read-only.
    If I do this column (SEQ) as a standard report column, then when I submit the newly added line, I still get the error ORA-20001 - can not insert NULL f... Although I can see there is a value y. column of the island switch to the text field, the insert went very well.

    How do you solve this read only number column?



    Thanks a lot for your help.



    Tai

    Put just the following in the attributes of the item in your column:

    readonly="readonly"
    

    and make the column readonly.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Return only the columns with different values.

    Hi all

    I am trying to solve a seemingly trivial problem but can't seem to get any clear answer anywhere in any forum. Consider a single table with 5 columns and only two lines:
    row_id           first_name         last_name        age            gender
    1                    John                  doe               27             M
    1                    Jane                  doe               27              F  
    Assume that there is no primary key or any other constraint. Also assume that there are only and only two lines of this table. So I need basically a query that, overall above lines, would return first name and sex, because they are only different columns in two lines, as well as their values. Even if I can get sort of column names that are different and that would be enough that I can easily access the values later. It is also important to remember that I may not know the names of the columns in the columns, so basically, somehow, I use user_tab_columns in the process.

    Any help appreciated.

    Published by: 894302 on May 1, 2013 10:35

    Hello

    894302 wrote:
    The exact release could be just a varchar variable that lists all the columns that have different values with each column name separated by commas. We'll call the query you want as a QUERY. So, if I do something like

    Select the REQUEST of double; Output should be: 'first_name, equality of the sexes. Is this possible?

    In this case:

    SELECT     RTRIM ( DECODE (a.row_id,     b.row_id,     NULL, 'row_id,')     ||
                    DECODE (a.first_name, b.first_name, NULL, 'first_name,') ||
              DECODE (a.last_name,  b.last_name,  NULL, 'last_name,')  ||
              DECODE (a.age,        b.age,          NULL, 'age,')      ||
              DECODE (a.gender,     b.gender,     NULL, 'gender,')
               , ','
               )          AS different_columns
    FROM     rhit_table_x  a
    JOIN     rhit_table_x  b  ON  a.ROWID     < b.ROWID
    ;
    

    Output:

    DIFFERENT_COLUMNS
    ---------------------------------------
    first_name,gender
    

    This assumes that you have really a table, then you can use ROWID to distinguish the lines, since there is no primary key.
    If this isn't the case, you first assign ROW_NUMBER in a subquery.

  • How to select a record in one table to manipulate data in a database?

    Hello community,

    Using 32-bit Labview 2015.

    I created a user interface that runs a query and retrieves my table from a sql database.

    I want to be able to manage only one record at a time by selecting the record in my table and then manipulate the data according to the needs.

    Whenever the user runs a query, I want as the first record in the table to be selected / highlighted.

    I want an indicator that is currently active.

    Then a click of a button, to be able to scroll the actively selected record.

    Once I have the selected record, I want a way to write a query to edit or delete the record.

    Is attached a photo of my query to select all of my table and connect data in my table (results).

    Attached a photo of my painting showing the timeline of my sql database.

    What is the best way to go on a record selection in a table and the modification of data with a query?

    Any help would be greatly appreciated.

    Thank you

    I guess that's not a table, but multi-column listbox.

    Right click, select--> highlight whole line selection Mode

    The value of the multicolumn listbox is the row index - you can write a local variable to highlight the line, the event structure to handle the user clicking on, etc.

    If you enable the property editable ListBox cells, you can allow users to edit the items of the listbox.

    If you want to get the data in row, you hint REF table and work with the array of strings in row - convert it to cluster, etc..

    I don't know, what type of data, it is, how you structure the database looks like, I don't even know if you use the wrapper to work with the database, I can't write queries for you.

    Something like Update Tablica Set Serial = '5' where ID = '22';

  • How do I remove the filter from column of table without QueryEvent

    Hi all

    With the help of JDev 12.1.3.

    I have a table that contains a list of customers and suppliers like so.  Auto Repair Bob is a client.  Chips R Us is a seller.

    Name                | TypeKey (foreign key to the Table of Type) | Unique ID

    Auto repair Bob C 1

    Quickie Mart C 2

    R chips us V 3

    Let's say that I filter on 'V' through the user interface by selecting a choice selection of the column in the table.  Now only chips R Us opens.

    Name                | MasterTypeKey | Unique ID

    R chips us V 3

    Now, let's say that I want to remove my filter I can do another business process programmatically.  How to do that without requiring a QueryEvent and so to refresh a page?  I have been searching the various view classes of being variable Manager and have located the variable I need to remove it, but I'm not sure how to let him go.

            // get the query in it's current state
            String lQuery = bpIterator.getViewObject().getQuery();
            //get Valriables
            VariableValueManager lEnsureVariableManager = bpIterator.getViewObject().ensureVariableManager();
            Variable[] lVariables = lEnsureVariableManager.getVariables();
            int lCount = lEnsureVariableManager.getVariableCount();
            // Dump query
            System.out.println("---query--- " + lQuery);
            // if variables found dump them
            if (lCount > 0){
                System.out.println("---Variables:");
                for (int ii = 0; ii < lCount; ii++){
                    Object lObject = lEnsureVariableManager.getVariableValue(lVariables[ii]);
                    System.out.println("  --- Name: " + lVariables[ii].getName() + " Value: " +
                                       (lObject != null ?  lObject.toString() : "null"));
                }
            }  
    

    Makes me

    ---query--- SELECT BusinessPartners.COMPANY_ACCOUNT_ID,       BusinessPartners.MASTER_TYPE_KEY,         BusinessPartners.NAME,         BusinessPartners.BUSINESS_PARTNER_REF_KEY,      FROM BUSINESS_PARTNERS BusinessPartners WHERE ( ( ( (UPPER(BusinessPartners.MASTER_TYPE_KEY) = UPPER(:vc_temp_1) ) ) ) ) AND BusinessPartners.COMPANY_ACCOUNT_ID = :Bind_CompanyAccountId ORDER BY BusinessPartners.NAME
    ---Variables:
      --- Name: vc_temp_1 Value: C
      --- Name: pCompanyAccountId Value: null
    

    I am trying to get vc_temp_1 is deleted or to accept any value, but when I write what follows I get an error message "missing parameter IN or OUT."

    lEnsureVariableManager.removeVariable("vc_temp_1");
    

    Any ideas on how I can remove the filter on my view object?

    It cannot work without running the query again. As you see that the filter is running a query make the vo is not all data.even if you delete the variable filter, that you do not get the data from the database you need to show.

    You can reset the filter (see https://tompeez.wordpress.com/2013/08/06/jdev-12c-how-to-reset-a-filter-on-an-aftable-the-12c-way/) but you must run the query again to the corresponding data.

    Timo

  • Select the data in a table and update in another table

    Dear experts,

    create the table TB_ENCRYPT

    (

    Identification number,

    Varchar2 (200) KEY

    );

    INSERT INTO TB_ENCRYPT VALUES(1,'HJUVHDUIFBSDGVU');

    SELECT * FROM TB_ENCRYPT;

    1 HJUVHDUIFBSDGVU

    create TABLE users)

    username, NUMBER of

    password VARCHAR2 (200)

    );

    Insert users

    values (1, 123 # "")

    Insert users

    values (2, 456 #')

    Select * from users;

    1 123 #.

    # 2 456

    I want to select the data KEY for table TB_ENCRYPT column and update in the column of tables for the respective key user password

    TB_ENCRYPT table contains only a single key value. Comparing this key, I want to update the old value of the key to the new value.

    For encryption and decryption I followed the java class method.no is worried about that.

    create or replace

    PACKAGE PCK_ENC AUTHID CURRENT_USER AS

    FUNCTION DECRYPT (VARCHAR arg0, arg1 VARCHAR) AS VARCHAR BACK LANGUAGE JAVA NAME 'Encrclass.decrypt (java.lang.String, java.lang.String) return java.lang.String ';

    FUNCTION ENCRYPT (VARCHAR arg0, arg1 VARCHAR) AS VARCHAR BACK LANGUAGE JAVA NAME 'Encrclass.encrypt (java.lang.String, java.lang.String) return java.lang.String ';

    END;

    SELECT PCK_ENC. ENCRYPT('1234','HJUVHDUIFBSDGVU') FROM DUAL;

    HERE,

    1234 - is the password of the users table column data

    HJUVHDUIFBSDGVU - represents the key of table TB_ENCRYPT column data.

    Comparing this key, I want to update the old value of the key to the new value.

    I tried with this method

    declare

    cursor c1 is

    Select the key

    of TB_ENCRYPT

    where id = 1

    update the id;

    Start

    for c1_rec looping c1

    update users

    password is PCK_ENC. Encrypt (Password, Key)

    the location being c1;

    commit;

    end loop;

    end;

    /

    Help, please

    You can use the MERGE statement.

    merge into users
    using tb_encrypt
       on (id = userid)
      when matched then
          update set password = PCK_ENC.ENCRYPT(password,key);
    

    And why you encrypt your password. This isn't a good idea. Just password hash.

Maybe you are looking for

  • Satellite C855 - 2fc w / Windows 8 - audio/video trolling and buzzing

    For the past week or so I have experienced a problem audio previously unencountered with my Toshiba Satellite C855 - 2fc (windows 8 OS). I had the machine since mid-February, but it was only recently that I found that whenever I try to read multimedi

  • TDMS defragment function blocks for labview

    Hello community, I have a few problems with the function of defrag TDMS in LabVIEW 2015 on a Windows 10 machine. My Viewer TDMS is crushed during the defragmentation of the tdms file I was trying to open (fragmented 700 MB text file). So I made a sim

  • Minecraft does not work when the minecraft server is in place

    I try to implement my minecraft 1.1 with my 1.1 minecraft server program and one of them came! Ive tried troubleshooting, but it does not! Help, please

  • Help: lost function premium activation code.

    I lost my "bonus feature activation code" for the system (deleted by the moderator). Who should I contact for replacement so I can generate the key file? Thank you! Dan

  • Localhost unreachable destination to the LAN address

    Windows Vista Home Prem / 2.1 Ghz/3 GB RAM AMD I'm having this problem where I am unable to access certain local IP on my LAN addresses. I have what I think are routes in the routing table, so I'm completely puzzled as to why I get inaccessible Desti