The increment number

Hello.

How can I do to create a column increment a value like that?

time of payment

11:00

11:05

11:10

11:15

11:20

Thanks in advance.

What is the data type of this column?

Do you want to just create data once?

5 /(60*24) = the fraction of a day which represents 5 minutes, so something like

Select to_date (May 11, 2015 11:00 ',' MON-DD-YYYY hh24:mi:ss') + (rownum - 1) * 5 / (60 * 24)

of the double

connect by rownum< (the="" number="" of="" rows="" you="" want="" to="">

(for example - I used to_char on the result above to display the component "time" date):

  1  select to_char(to_date('11-MAY-2015 11:00:00', 'DD-MON-YYYY hh24:mi:ss') + (rownum - 1) * 5 / (60*24), 'hh24:mi:ss
)
  2  from dual
  3* connect by rownum < 10
SQL> /                                                                                                                 

TO_CHAR(
--------
11:00:00
11:05:00
11:10:00
11:15:00
11:20:00
11:25:00
11:30:00
11:35:00
11:40:00            

9 rows selected.

Tags: Database

Similar Questions

  • Server gave the incremental number of volume

    After the upgrade to the latest version, the server has added a number of incremental volume name in all its parameters.

    So my Cache files are on/Volumes/1 Server / server function, even if the disk is only named "Server."

    It seems to work but I don't know why he did it, and I don't want it to happen again. It can affect things like backup locations.

    No idea how to restore it without messing up all my settings?

    This kind of problem is most typical when you have an external hard drive or a second partition or volume on your drive internal. What can happen sometimes, it's when the Mac is stopped or restarted it can miss things neatly up to: basically, it leaves an entry in /Volumes which should normally be automatically deleted.

    When the Mac then starts and goes up the different volumes, he sees the previous left on entry and rightly then adds a number to get around this, to make it unique.

    I would therefore use Terminal.app and the following command

    ls-l /Volumes

    and tell us what is indicated.

    Some server configurations may Mac came with two players initially and both can have the same original name.

    Another possibility is that if you have already used a RAID1 configuration which is mirrored in the volume of server and this RAID broke, and then risk copies of the disk server being listed.

  • How to increment the hex number

    Hello

    I have a hex string with value as 0080F401F9AE. I need to convert this string value the hexadecimal number and incremennt by one. So I should get 0080F401F9AF as the answer to the value of output string. Please may I know how to implement this increment and also conversion.

    Thank you.

    The range of the chain has many string to number conversion functions. In your case, you want the hexadecimal string for the Number function. Since you are dealing with a 64-bit value you want to ensure a constant which is U64 to set bits the number of wire length. Then, you can simply add 1 to the number.

  • Text field increment number of legend - does not correctly load after the backup

    I am trying to create a field of dynamic legend who will be essential are text fields look like a list.  Initially, I searched on how to do this.  I finally found a way to do it, and it is simply to count the number of instances of the text field I and set the value of the legend:

    var curObject = prospectus.page1.step1.ObjectivesSubform.Objectives.instanceManager.count;
    prospectus. Page1.Step1.ObjectivesSubform.objectives [curObject-1]. Objective.Caption.Value text.value the Group concat (curObject, ":");

    And that helps my form works very well and the numbers to load fine in the form.  The problem I'm having is that after I save the form and reload, the figures date back to 1 for each text field.  Someone has an idea?

    * To test what I see, go to 'Objectives' and click Add target to create at least 2 additional text fields (so that you have at least 3 overall).  Save the form, and note that the numbers went from 1,2,3 to 1,1,3-triethoxyheptane.  It will be the same if you create any amount.  If you create 5 more it will go 1,1,1,1,5.  I'm puzzled.

    I think that it is related to the initialization of the form sub and how instance manager interprets the subshape County. The "count" on the instanceManager property is the current number of instances of the secondary form. When you add instances of the form in increments of 'count' and she is exposed as a sequential number incremented. However, after economy-close-open the form, the County is irrelevant until you add another instance.

    Try the 'instanceIndex' property and assigning the legend as follows:

    prospectus. Page1.Step1.ObjectivesSubform.objectives.objective::Initialize - (JavaScript, client)

    var CNT = Objectives.instanceIndex + 1;
    xfa.resolveNode("Objectives.Objective.caption.value.#text").value = cnt + ":";

    Steve

    PLEASE NOTE ON THIS FORM, I HAVE NOT HAD A CHANCE TO WATCH, THERE ARE PROBLEMS.

  • Roll forward standby database with the incremental backup, when a data file is deleted in primary education

    Hello

    I'm nologging operations + deleting some files in the primary and you want to roll forward the day before using the incremental backup Yvert.

    I do in particular, as the files are dropped?

    I got to meet ( Doc ID 1531031.1 ) which explains how to roll forward when a data file is added.

    If I follow the same steps, to make the move to restore the data file newly added, will it work in my case?

    Can someone please clarify?

    Thank you

    San

    I was wondering if reocover noredo is performed before restored controlfile, oracle will apply the incremental backup error-free files, and in this case, what would be the status of the data file in the control file.

    Why do you consider to retrieve the day before first and then in the restaurant of the controlfile will lead to problems. Please read my first post on this thread - I had clearly mentioned that you would not face problems if you go with the method of deployment.

    Here is a demo for you with force logging is disabled. For the first time the day before resuming and restored then the controlfile ensures:

    Primary: oraprim

    Standby: orastb

    Tablespace DataFile of MYTS is removed on primary:

    SYS @ oraprim > select force_logging in the database of v$.

    FORCE_LOGGING

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

    NO.

    Currently the tablespace is to have 2 data files.

    SYS @ oraprim > select file_name in dba_data_files where nom_tablespace = 'MYTS;

    FILE_NAME

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

    /U01/app/Oracle/oradata/oraprim/myts01.dbf

    /U01/app/Oracle/oradata/oraprim/myts02.dbf

    In standby mode, the tablespace is to have 2 data files:

    SYS @ orastb > select name from v$ datafile where ts #= 6;

    NAME

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

    /U01/app/Oracle/oradata/orastb/myts01.dbf

    /U01/app/Oracle/oradata/orastb/myts02.dbf

    Postponement of the day before on the primary log shipping

    SYS @ oraprim > alter system set log_archive_dest_state_3 = delay;

    Modified system.

    Dropped 1 MYTS datafile on the primary.

    SYS @ oraprim > alter tablespace myts drop datafile ' / u01/app/oracle/oradata/oraprim/myts02.dbf';

    Tablespace altered.

    Removed some archives to create a space.

    [oracle@ora12c-1 2016_01_05] $ rm - rf * 31 *.

    [oracle@ora12c-1 2016_01_05] $ ls - lrt

    13696 total

    -rw - r - 1 oracle oinstall 10534400 5 January 18:46 o1_mf_1_302_c8qjl3t7_.arc

    -rw - r - 1 oracle oinstall 2714624 5 January 18:47 o1_mf_1_303_c8qjmhpq_.arc

    -rw - r - 1 oracle oinstall 526336 5 January 18:49 o1_mf_1_304_c8qjp7sb_.arc

    -rw - r - 1 oracle oinstall 23552 5 January 18:49 o1_mf_1_305_c8qjpsmh_.arc

    -rw - r - 1 oracle oinstall 53760 5 January 18:50 o1_mf_1_306_c8qjsfqo_.arc

    -rw - r - 1 oracle oinstall 14336 Jan 5 18:51 o1_mf_1_307_c8qjt9rh_.arc

    -rw - r - 1 oracle oinstall 1024 5 January 18:53 o1_mf_1_309_c8qjxt4z_.arc

    -rw - r - 1 oracle oinstall 110592 5 January 18:53 o1_mf_1_308_c8qjxt34_.arc

    [oracle@ora12c-1 2016_01_05] $

    Current main MYTS data files:

    SYS @ oraprim > select file_name in dba_data_files where nom_tablespace = 'MYTS;

    FILE_NAME

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

    /U01/app/Oracle/oradata/oraprim/myts01.dbf

    Current data of MYTS standby files:

    SYS @ orastb > select name from v$ datafile where ts #= 6;

    NAME

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

    /U01/app/Oracle/oradata/orastb/myts01.dbf

    /U01/app/Oracle/oradata/orastb/myts02.dbf

    Gap is created:

    SYS @ orastb > select the process, status, sequence # v$ managed_standby;

    STATUS OF PROCESS SEQUENCE #.

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

    ARCH. CLOSING 319

    ARCH. CLOSING 311

    CONNECTED ARCH 0

    ARCH. CLOSING 310

    MRP0 WAIT_FOR_GAP 312

    RFS IDLE 0

    RFS IDLE 0

    RFS IDLE 0

    RFS IDLE 320

    9 selected lines.

    Backup incremental RMAN is taken elementary school.

    RMAN > incremental backup of the format of database of SNA 2686263 ' / u02/bkp/%d_inc_%U.bak';

    From backup 5 January 16

    using the control file of the target instead of recovery catalog database

    the DISC 2 channel configuration is ignored

    the DISC 3 channel configuration is ignored

    configuration for DISK 4 channel is ignored

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 41 type device = DISK

    channel ORA_DISK_1: starting full datafile from backup set

    channel ORA_DISK_1: specifying datafile (s) in the backup set

    Enter a number of file datafile = 00001 name=/u01/app/oracle/oradata/oraprim/system01.dbf

    Enter a number of file datafile = name=/u01/app/oracle/oradata/oraprim/sysaux01.dbf 00003

    Enter a number of file datafile = name=/u01/app/oracle/oradata/oraprim/undotbs01.dbf 00004

    Enter a number of file datafile = name=/u01/app/oracle/oradata/oraprim/users01.dbf 00006

    Enter a number of file datafile = name=/u01/app/oracle/oradata/oraprim/myts01.dbf 00057

    channel ORA_DISK_1: starting total, 1-January 5, 16

    channel ORA_DISK_1: finished piece 1-January 5, 16

    piece handle=/u02/bkp/ORAPRIM_inc_42qqkmaq_1_1.bak tag = TAG20160105T190016 comment = NONE

    channel ORA_DISK_1: complete set of backups, time: 00:00:02

    Backup finished on 5 January 16

    Saved controlfile on primary:

    RMAN > backup current controlfile to Eve format ' / u02/bkp/ctl.ctl';

    Cancel recovery in standby mode:

    SYS @ orastb > alter database recover managed standby database cancel;

    Database altered.

    Recover the day before by using the above backup items

    RMAN > recover database noredo;

    From pick up to 5 January 16

    the DISC 2 channel configuration is ignored

    the DISC 3 channel configuration is ignored

    configuration for DISK 4 channel is ignored

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 26 type of device = DISK

    channel ORA_DISK_1: from additional data file from the restore backup set

    channel ORA_DISK_1: specifying datafile (s) to restore from backup set

    destination for the restoration of the data file 00001: /u01/app/oracle/oradata/orastb/system01.dbf

    destination for the restoration of the data file 00003: /u01/app/oracle/oradata/orastb/sysaux01.dbf

    destination for the restoration of the data file 00004: /u01/app/oracle/oradata/orastb/undotbs01.dbf

    destination for the restoration of the data file 00006: /u01/app/oracle/oradata/orastb/users01.dbf

    destination for the restoration of the data file 00057: /u01/app/oracle/oradata/orastb/myts01.dbf

    channel ORA_DISK_1: backup /u02/bkp/ORAPRIM_inc_3uqqkma0_1_1.bak piece reading

    channel ORA_DISK_1: room handle=/u02/bkp/ORAPRIM_inc_3uqqkma0_1_1.bak tag = TAG20160105T190016

    channel ORA_DISK_1: restored the backup part 1

    channel ORA_DISK_1: restore complete, duration: 00:00:01

    Finished recover to 5 January 16

    Restored the controlfile and mounted the day before:

    RMAN > shutdown immediate

    dismounted database

    Instance Oracle to close

    RMAN > startup nomount

    connected to the database target (not started)

    Oracle instance started

    Total System Global Area 939495424 bytes

    Bytes of size 2295080 fixed

    348130008 variable size bytes

    583008256 of database buffers bytes

    Redo buffers 6062080 bytes

    RMAN > restore controlfile eve of ' / u02/ctl.ctl ';

    From 5 January 16 restore

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 20 type of device = DISK

    channel ORA_DISK_1: restore the control file

    channel ORA_DISK_1: restore complete, duration: 00:00:01

    output file name=/u01/app/oracle/oradata/orastb/control01.ctl

    output file name=/u01/app/oracle/fast_recovery_area/orastb/control02.ctl

    Finished restore at 5 January 16

    RMAN > change the editing of the database;

    Statement processed

    output channel: ORA_DISK_1

    Now the data file does not exist on the standby mode:

    SYS @ orastb > alter database recover managed standby database disconnect;

    Database altered.

    SYS @ orastb > select the process, status, sequence # v$ managed_standby;

    STATUS OF PROCESS SEQUENCE #.

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

    CONNECTED ARCH 0

    CONNECTED ARCH 0

    CONNECTED ARCH 0

    ARCH. CLOSING 329

    RFS IDLE 0

    RFS IDLE 330

    RFS IDLE 0

    MRP0 APPLYING_LOG 330

    8 selected lines.

    SYS @ orastb > select name from v$ datafile where ts #= 6;

    NAME

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

    /U01/app/Oracle/oradata/orastb/myts01.dbf

    Hope that gives you a clear picture. You can use this to roll forward day before using the SNA roll forward Eve physical database using RMAN incremental backup | Shivananda Rao

    -Jonathan Rolland

  • Load with the incremental update of the IKM Oracle

    Hi Experts,

    According to my understanding, incremental load is that the new data (with insert append or load incremental (update/insert or merged with or without behavior SCD)).

    While peek into the code of the IKM KM here it is my understanding:

    Incremental update: given the PK defined in the target data store, that KM will check line by line and put insert/update (change data capture).

    Append: Blindly block for the table insertion target and any changed data will be captured. It will not truncate and insert so that to avoid duplicates in the data, have a PK defined in the target table, so whenever the duplicate data comes it can be prevented or go for CKMs.


    Now my doubt is,


    When you use the incremental km update: the scenario is I have an incremental load today, inserted for example 200000 files today and tomorrow other 200000 records added (may include updates of certain lines in the previous loaded 2,00,000 documents. Now it will scan 4,00,000 (yesterday + today) and seek changes, I mean to update or insert

    Because according to my understanding will treat this KM row by row all records (my understanding is correct?). If it reads each record and are looking for a change or not change it seems to me that his time and performance issues?  CDC is right approach in this scenario or the implementation of SDC on all columns in the table?


    Regarding the large number of records coming daily, updated incremental if IKM checking all records for update or insert or no change, in my opinion, this isn't a performance wise and time to compare source and target value. This KM eliminate comparing itself the Chronogram of the source to target those who does not charge any change in any of the previous column value?



    Sorry if this is a silly question. Just trying to figure which can be better charge strategy, especially when I have millions of records entering source daily.


    SSX I remember ealier JeromeFr our expert member in the community, said Partioned Exchange to treat only to process the given month data when you manage tables partitioned at the database level.


    Best regards

    ASP.








    Hi ASP_007,

    Charge, as opposed to full reload, does indeed only new (and possibly changed) data. There are 3 main ways to do this:

    • Set up a filter in your mapping interface/load only the data including the upper date to a variable (which holds the last loading date).
    • Use the framework of the CDC in ODI. There are several JKMs. The solution optimal is probably the Golden Gate, one, but you must purchase this additional license. mRainey wrote about this several times: http://www.rittmanmead.com/2014/05/goldengate-odi-perfect-match-12c-1/
    • Retrieve all the data in the source and allow an incremental update of the IKM define what already exists.

    Of course, the first two still will take a little more time to develop, but it will be much faster in terms of performance because you treat data less.

    It is for the part "Extract", get data from the source.

    Now, you must know how to "integrate" into your target. There are different strategies as insert Append, incremental update, Type 2 SCD...

    • Indeed insert Append won't update. It will only insert lines. It is a good approach for a full charge, or for an additional charge when you want to insert data. There is an option in most of the IKMs Append (control) to truncate the table before inserting (or delete all the lines if you do not have the privileges to truncate).
    • Incremental update: there are different IKMs for this and some may have better performance than others depending on your environment. I recommend you to try a few and see which is more fast for you. For example ' IKM Oracle incremental update (MERGE) "could be faster than 'IKM Oracle incremental update. I personally often use a slightly modified version of ' IKM Oracle incremental update (MERGE) for Exadata ' to avoid using a work table (I$ _) and perform the merge directly into the target table. The last approach works well with the CDC when you know that all data are new or changed and needs to be treated.
    • SCD2: To maintain your dimensions needing SCD2 behavior.

    So in answer to your questions:

    Because according to my understanding will treat this KM row by row all records (my understanding is correct?). If it reads each record and are looking for a change or not change it seems to me that his time and performance issues?

    Some of the IKMs will do it line by line, others will do it based on a game. This is why it is important to check what he does and he spots.

    CDC is right approach in this scenario or the implementation of SDC on all columns in the table?

    Yes certainly, you will have less data to be processed.

    Regarding the large number of records coming daily, updated incremental if IKM checking all records for update or insert or no change, in my opinion, this isn't a performance wise and time to compare source and target value. This KM eliminate comparing itself the Chronogram of the source to target those who does not charge any change in any of the previous column value?

    Yes, by using ' IKM Oracle incremental update (MERGE) for Exadata ' with the strategy of 'NONE '. This means that he will not try to see the rows from the source is already in the target.

    PS; I am remember ealier JeromeFr our expert member in the community, said Partioned Exchange to treat only to process the given month data when you manage tables partitioned at the database level.

    It is a good approach when you want to reload an entire partition (if you have a monthly charge in a monthly partition or a daily load in a daily score for example). It is easier to set up to load the new lines only. But if you need to update things in the source, you can use incremental update strategy on an intermediate table that contains the same data that your partition and then create the swap partition in a further step.

    Thanks for the mention.

    Be sure to close your other discussions.

    It will be useful.

    Kind regards

    JeromeFr

  • How to adjust the increments of the position of the playhead to go to 0; 99 instead of 0; 29?

    The playhead increments go to 0; 01 to a max of 0; 29 entry give it a second. But I need to go correctly tenths and hundreds of a second, not 1/30th of a second. How to fix this?

    Thanks in advance.

    Ben C.

    Hey Ben

    The increment of the video playhead to any given sequence is defined by the frame rate / time base for the video... it's the number of images to display per second.

    From a point of view about, 30 frames per second is the norm for US videography.

    See you soon

    Andy

  • difference between the incremental update of the IKM oracle and incremental update IKM oracle (PL - SQL)

    Hello

    What is the difference between the incremental update of the IKM oracle and updated incremental IKM oracle (PL - SQL) and incremental update IKM oracle (line by line).

    Thank you

    Papai

    The only difference is that the second using plsql for incremental update. He also to manage clob issues well enough.

    If you need to know more you can read the description of each KM section.

    Incremental update IKM Oracle (PL-SQL)

    -------

    Description:

    -Knowledge integration module

    -Integrates data into an Oracle table from target in incremental update mode using PL/SQL.

    -Non-existent rows are inserted. already existing lines are updated.

    -Data can be controlled. Data invalid are isolated in the error Table and can be recycled.

    -This KM uses PL/SQL to perform the inserts and updates until and blob columns are supported. Please see the restrictions.

    -When you use this module with a source table logged, it is possible to synchronize the deletions.

    Restrictions:

    -When working with the logged data, if the "synchronize destruction of the newspaper" are executed, the lines deleted on the target are engaged

    -The data are updated even if not changed (upgrade from any (e)

    -The number of lines (number of inserts/changes) is not available because the transactions are performed using PL/SQL

    -Comparison of the data is performed using the key to update defined in the interface. It must be set.

    -L'option TRUNCATE does not work if the target table is referenced by another table (foreign key)

    -Options FLOW_CONTROL, and STATIC_CONTROL call the Module knowledge check to isolate invalid data (if no CKM is defined, an error occurs). These two options should be set to NO in the case where an integration Interface meets a TEMPORARY target data store.

    -L' FLOW_TABLE_OPTION option is set by default to NOLOGGING. Set it to a space if the interface is running on an Oracle 7 database

    -Deletions are committed regardless of the VALIDATION option

    Incremental update of the IKM Oracle

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

    DESCRIPTION:

    -Integrates data into an Oracle table from target in incremental update mode.

    -Non-existent rows are inserted. already existing lines are updated.

    -Data can be controlled. Data invalid are isolated in the error Table and can be recycled.

    -When you use this module with a source table logged, it is possible to synchronize the deletions.

    REQUIREMENTS:

    -The update key defined in the interface is required.

    RESTRICTIONS:

    -When working with the logged data, if the "synchronize destruction of the newspaper" are executed, the lines deleted on the target are engaged

    -L'option TRUNCATE does not work if the target table is referenced by another table (foreign key)

    -Options FLOW_CONTROL, and STATIC_CONTROL call the Module knowledge check to isolate invalid data (if no CKM is defined, an error occurs).

    These two options should be set to NO in the case where an integration Interface meets a TEMPORARY target data store.

    -L' FLOW_TABLE_OPTION option is set by default to NOLOGGING. Set it to a space if the interface is running on an Oracle 7 database

    -Deletions are committed regardless of the VALIDATION option

    -L' ANALYZE_TARGET option will allow to assess correct statistics only if the VALIDATION is set to Yes. Otherwise, the IKM gather statistics based on old data.

    -Default UPDATE option is TRUE, which means by default it is assumed that there is at least one column nonkey specified in a target data store.

  • I want to rename and move files from a shoot 5 d. I would like to use the functionality of the increment to count, but since I have to get out of each file to the following file, it starts again at 1. What is the best way to do it?

    I want to rename and move files from a shoot 5 d on a new drive. I would like to use the functionality of the increment to count, but since I have to get out of each file to the following file, it starts again at 1. What is the best way to do it?

    HI -.

    As a prelude to 2014.0, we have added a feature allowing you to choose what number to start the increment of.  Look in the section ingest Rename dialog and change your preset. When you click the button, you should see the option "Custom Auto Increment". This will allow you to choose what number to start on.  We've also added a few newspapers to try to remember where let prelude last successfully interfere the operation by using this option. So, in theory, to remember the number for you. But if it isn't (maybe you want multiple kickoff ingested at the same time) you can always manually set the number to start with.

    Check that out and let me know how it works for you.

    Kind regards

    Michael

  • Patch Set updates and the version number

    Oracle document 854428.1 , Patch Set updates (UAR) for Oracle products, has this to say about the version number:

    2.3 version reference for easier tracking
    Oracle combines a version number of the hotfix. The fifth database version number is incremented for each power supply. For example, the original POWER supply is version 11.1.0.7.1, the second power supply for version 11.1.0.7 is 11.1.0.7.2 and so on.

    My DBA just told me that they applied PSU3 to our database, that was the version number 11.2.0.2.0. I checked the version number after the power supply has been applied, but it is always the same:

    SQL > select version of v$ instance;

    Version
    -----------------
    11.2.0.2.0

    The PSUS are changing the fifth version number or not?

    You can query sys.registry$ history and check the comments column to find the power supply applied. It is updated when executing the step according to patch (catbundle.sql).

    Published by: user7861302 on October 8, 2011 17:24

  • Purpose of _FULL versus the INCREMENTAL Sessions in BI applications

    I see that ootb there are a certain number of Sessions SIL _FULL and incremental.  My questions are:

    (1) why have we not complete compared to the additional sessions SIL? Is the filter for Full / incremental is no not on the side of the SDE (via > last update logic date?). Many of these sessions SIL are exactly the same for COMPLETE and not COMPLETE. The only difference is that the CAD has each specified for a lot against Incremenal for each task. The only difference seems to be that for Dimensions, the ENTIRE WFs also run a Session not SPECIFIED to insert a line not specified in the corresponding table of Dimenison. Why can't a SIL session be used instead of keep 2?

    (2) what I best practice for change capture in BI applications... is it to use the SDÉS for FULL vs. incremental (via filters) or do it on the side of SIL? In some cases all data is loaded from the staging... in other cases... that the changed data is loaded. How is it determined.

    Thanks in advance.

    Published by: 848613 on June 2, 2011 14:30

    Hello

    Generally to huge facts you do data loads in bulk for full loading mode (that you set in wrkflow as target type = in bulk), where as in the incremental loads, you go with the normal mode in which case you drop indexes before making additional updates... hope this helps...

    Kind regards

  • Insert the next number primary key

    Hello
    I have students of the table than with the number of columns as the primary key stud_id, stud_no in number and varchar2 data type stud_name

    I need a pl/sql code used with the form generator that automatically inserts the next number in primary key
    When I want to insert a new record
    for example if the sql > select count (*) students;
    result = 11 means there are 11 students
    the code then between 12 as a new issue of stud_id then I will perform the registration manually.
    I'll start from the number
    Thank you

    Windows OS
    database to Oracle 10 g
    Oracle form builder 6i generator

    (1) it is not the right way to fill a primary key column. In addition to being very ineffective (as the table grows, grows the amount of work required to count all rows), it does not work for multi-user applications (number of sessions repeatedly see the same indictment and that you are trying to insert the same value).

    (2) the right way to generate primary keys is to create a sequence, i.e.

    CREATE SEQUENCE seq_student_id
      START WITH 1
      INCREMENT BY 1
      CACHE 100;
    

    and use this sequence in your INSERT statement, i.e.

    INSERT INTO students( stud_id, stud_no, stud_name )
      VALUES( seq_student_id.nextval, <>, <> );
    

    Justin

  • I called Amazon to try to recover the serial number of my old iPod classic two weeks ago, and they gave me a kind of account; They pronounce it account 'seen - It '.

    I called Amazon to try to recover the serial number of my old iPod classic two weeks ago, and they gave me a kind of account; They pronounce it account 'seen - It '. I don't have to ask how, because I thought I knew, but I was wrong. Would what type of account be? And how it's spelled? The name of the account is a tiny s followed a 7-digit number. (Of course I will not type the numbers.)

    I would go to a forum for Amazon, because they can be better equipped to answer a question on their system. If synchronize you the device with iTunes, the number can be there in the backup section.  Find the serial number of your Apple - Apple Support product

  • I can't add the phone number to iMessages on my desktop

    I get messages from people on my phone also used to appear on the iMessages on my desk and I see now that I can choose only add e-mail addresses to iMessages on my desktop. Is it possible to add phone numbers? I used to be able to do and now it is missing and I get a LOT of messages on my phone number.

    Dave

    Hello

    On the iPhone, make sure that the Send and Receive messages indicates the active phone number.

    Make sure that the iPhone and Macs use the same Apple ID and that they are marked Active.

    Try logging (Sign Out) of the Apple ID on the iPhone and then wait a few minutes before adding it back.

    This should trigger the pop ups on the Mac to accept that the Mac is aware of the iPhone number (again).

    20:07 Friday; September 23, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

  • If anyone has the serial number of my iPhone, my device is compromised?

    can my compromised iphone if anyone has the serial number of my devices?

    N °

Maybe you are looking for

  • Tecra M1 - SD cards with greater than 1 GB capactiy?

    I have a Tecra M1, the SD card reader is limited to cards up to 1 GB of capacity. Y at - it a software update available to enable higher capacity cards to be recognized?

  • IKBMON_01

    W8.1 Core on a HP Envy lvl4 1110us installation. Someone knows what an IKBMON_01 (a device)? Where can I find the driver? I downloaded all the W8.1 drivers for this laptop. Driver W7 has been detected. ACPI/HPQ0004 3 & 11583659 & 0 Thank you

  • Please notify new iMac or Mac Pro 2010 to replace a middle of 2007 Mac Pro

    My current setup of office: -2007 mac Pro with hard drive 2 x 1 t and a 1250, 10 GB hard drive -Time Capsule for the backup and the router -2 monitors: Cinema display 20 "and Cinema Display 23" I use CC of Photoshop, Indesign, and Illustrator CS4 for

  • Pavilion 550-114 a: Windows.old

    I was wondering why my new desktop Windows 10 has a large windows.old folder? This means it is really an operating system upgrade (from windows 7 or 8.1) rather than of what I assumed was a new generation of Windows 10 own?

  • Dell Latitude E6410 touchpad becomes slow and unresponsive after an hour using XP Pro

    I have a Dell Latitude Lap Top with XP Pro (recently installed).  I noticed that the touchpad responds very after about an hour. How can I solve this problem?