Insert select with the id auto incream

CREATE TABLE LOG
(NUMBER OF 'ID',
VARCHAR2 (30 BYTE) "ROLEUSER."
VARCHAR2 (30 BYTE) "ROLENAME",.
"studentId" VARCHAR2 (11 BYTE)
)
then I insert in the newspaper (ROLEUSER, ROLENAME, studentID) (select ROLEUSER, ROLENAME, studentID of table a, b).
where a.userid = buserid)
I want to get every row I insert the id auto insert with number of automatic increase
then I have insert into Log(ROLEUSER, ROLENAME, studentID)( select ROLEUSER, ROLENAME, studentID from table a, b

Use

insert into Log(ID, ROLEUSER, ROLENAME, studentID)( select ROWNUM, ROLEUSER, ROLENAME, studentID from table a, b
where a.userid=buserid)

Tags: Database

Similar Questions

  • Can we synchronize permission selected with the settings of operating system Notifications BB10 for our Application.

    Steps to follow:
    BB10 device--> settings--> Notifications--> Applications--> [name of your application]--> all alerts [Toggle button]

    I have an obligation to check whether or not 'All alerts' is allowed through settings when the application is running. To check if we can synchronize permission selected with the settings of operating system Notifications BB10 for my application. How to get javascript code if alerts permission is on / off, while the application is running.

    I tried adding the blackberry.system function and tried to hasPermission (blackberry.push) also, I can't determine if permission is allow / prohibit... Please suggest how to get that.

    I don't see a WebWorks API for this. If I expected to be anywhere, it's here:
    https://developer.BlackBerry.com/HTML5/APIs/beta/BlackBerry.notification.html#jbo1385148829097

    But it seems that this API has not been fully implemented; It may be useful to connect a developer Issue Tracker JIRA to get this feature added.

    At the same time, there is this API of Cascades that looks like what you're looking for:
    https://developer.BlackBerry.com/native/reference/Cascades/bb__platform__notificationapplicationsett...

    Write an extension for this feature should allow you to access this feature:
    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/template

    At the same time, a colleague is currently working on an extension that should open many features of Qt, and I think that the API above should be accessible through this extension. He must be released over the next week or two, so you can wait for that as well.

    EDIT: On this last point, see this extension which provides a mechanism for attaching in the majority of the Qt APIs.

    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/QtBridge

  • Unable to set keyframes in the audio clip selected with the pen tool - can no longer see the volume control line after developing the clip. What could be the problem? This seems to be the problem on any project that I opened.

    Cannot set keyframes in the audio clip selected with the pen tool - cannot see even the line volume control more to set keyframes on having developed the clip. What could be the problem?  I use the first CC pro @.

    You can use the Ctrl key and then click with the regular selection tool, clicking with ctrl will make a new keyframe. in this way, have no need for the tools. CTRL has other great shortcuts that will stop you having to spend retouching pads tools too.

    If the automation keyframe line is missing, you can switch on and off in the menu sequence.

  • The Central handle on the rectangle isn't gone when I select with the black arrow (v) tool. See the bounding box and the edges is both. Dd intermediate anchor to go?

    The Central handle on the rectangle isn't gone when I select with the black arrow (v) tool. See the bounding box and the edges is both. Dd intermediate anchor to go?

    haggyabeken,

    I'm afraid that you have come across the Rectangle Live bug, which is limited to MAC versions starting from 10.7 and 10.8, but not 10.9 (Mavericks), see this thread linked below.

    https://forums.Adobe.com/thread/1595973

    Thus, a switch for the Mavericks with a reinstall might be the way to solve it here and now.

    To get around it, in each case, it is possible to develop direct Rectangles to get the normal old shaped rectangles or Pathfinder > unit, or use the scale tool.

    A more permanent way round that is to create normal old shaped rectangles, after running the free script created by Pawel, see this thread with download link:

    https://forums.Adobe.com/thread/1587587

  • White on white selection with the magic wand of refining

    I'm trying to remove the background of a picture of BW - one model posing in front of a white background.

    Select with the magic wand works fine except on the area where the light on the model wears the white skin. When I choose, I get the hand and the lower part of the arm (see below) but miss the box top, completely white. I tried all kinds of settings and also tried to increase the contrast with a brightness/contrast layer, but nothing I I understand allows me to keep the arm and remove the bottom with the arm.  FWIW, the image cannot be redone.

    How can I do? Thanks for any help.

    EdB

    fist copy.jpg

    Learn how masking... Also in white when mixed in a layer with the blending mode multiply does not change.  So, if you add a new layer on top of your image and set its blending mode to multiply. You will see your arm starts to show through. Add a maske layer to this layer and paint with black to show the lower arm of the layer by hiding the top layer on the arm area.

  • How to manage the selection with the box in a table

    Hello


    JDev 11.1.2.4

    I have a table with an attribute of EO/VO, transitional to manage the selection. This attribute is displayed as a check box. The user makes a selection by clicking on the checkbox. Then, the user clicks on a button that displays a pop-up window. Inside of this pop-up window, that user can create, insert, delete, or update values in a table based on an other EO/VO.

    When the user clicks OK, the pop-up window is closed, then the data is committed.

    When the user clicks Cancel, the popup is closed and the changed data are ignored. To remove the data, I call a Rollback. It works fine, but all the transitory values are lost which is correct because of the discount after the cancellation.

    It's a problem because the user must be able to open the pop-up window several times with the same selection. This means that the restoration is not appropriate in this case.

    How to ignore data edited inside the pop-up window and keep the selection?

    Thank you

    You can try to put the popup in his own taskflow and define a backup point before entering the taskflow. When the user cancel the editing restore you to previous backup. This should dispel the changes.

    Or you save the selected rowkeys, call rollback and backward selection later.

    Timo

  • Insert select on the same table: possible without side effects?

    I have a very large table T1 containing millions of records. I need to treat its lines and create a few new lines based on selection.

    Table T1 contains events and one of them, with the code 100, is created by the further development of other events inside the table.

    My code is as follows:

    insert /*+append */ into T1 (code,...) values (100, c1,c2,...)
    select c1,c2... from T1 where (code=20 or code=10) and <other conditions>...
    
    

    as you can see I'm extract T1 lines to insert again in T1 with a different code and I use the direct path in order to get good performance.

    My fear is: choose is made from the same table I risk data loss? In general it is a good practice? Or is it better to create another table?

    Hello

    No I don't think that there may be loss of data. But that may depend on the behavior of the application and your where clause.

    I will explain how it is treated, so you can see if it's ok:

    1. the table is locked because of the insert add, (as)

    2 lines are read by select and make compatible from the State that was at the beginning of the query - 1.

    3 rows are inserted at the end, after the high-water line

    4 columns for new lines are sorted to be merged in the index

    5. high watermark is adjusted - visible new lines and lock is released

    Note that 2. and 3. occur at the same time: rows are inserted all read.

    Note that anyone can choose in the table during the operation - they see the changes committed only - if the State 1.

    all other DML are waiting for the lock being released, and will see new ranks and then

    If you have things that prevent the direct-path insert, append the hint will be ignored. So, if you must rely on close to 1. then the best lock explicitly with table lock. But I don't think that you need.

    Kind regards

    Franck.

  • Support for mandatory request - insert, select from the same table

    Hi all

    I need your help to write queries effectively.
    Oracle Version: 10.2.0.3.0
    OPERATING SYSTEM: UNIX

    I have a METRICS_TBL that is mentioned below table.

    CYCLE_DATE METRIC VALUE
    08/17/2008 COST-TV 100
    08/17/2008 COST-JOURNAL 50
    08/17/2008 COST-POSTALMAIL 25
    08/17/2008-PROD-TV 10
    08/17/2008-PROD-JOURNAL 25
    08/17/2008-PROD-POSTALMAIL 5

    Any data above, I have to add (Insert into select METRICS_TBL METRICS_TBL) at the same table with the records as mentioned below.

    2008-08-17 COSTPERPROD-TV 10
    08/17/2008-COSTPERPROD-LOG 2
    2008-08-17 COST PROD-POSTALMAIL 5

    Basically, I need to calculate the cost per product for each category. Depending on the settings available, metric should also be changed as COSTPERPROD and values should be cost/prod under each category.

    Can someone help me with the query.

    Thank you

    Something like this:

    INSERT INTO metrics_tbl
    (cycle_date, metrics, value)
    SELECT cost.cycle_date
             , 'COSTPERPROD-'||cost.mtype
             ,cost.value / prod.value
    FROM  (
       select cycle_date,substr(metrics, 1, 4) mtype, substrmetrics,instr(metrics,'-')+1) mmetric
       where substr(metrics, 1, 4) = 'PROD'
       ) prod
    INNER JOIN (   select cycle_date,substr(metrics, 1, 4) mtype, substrmetrics,instr(metrics,'-')+1) mmetric
       where substr(metrics, 1, 4) = 'COST'
       ) cost on cost.cycle_date = prod.cycle_date and cost.mmetric = prod.mmetric
    

    Ideally you would divide your METRICS column into two: one for the thing you're measuring (e.g. TV or NEWSPAPER) and the other for the metric (COST, PROD, COSTPERPROD etc.). That's what I did in the views online. Without it, it's kinda a mess and behave so, if the table becomes much more.

    HTH

    Nigel cordially

    Edited by: nthomas on January 14, 2009 15:57 - small correction SQL

  • LabVIEW 2009 SP1 crashes when moving large selection with the arrow key

    If I select a lot (10 or 15) diagram components and try to move some distance with the arrow button, I'm often a program crash.  Because a reduced number of components seems to hang after a longer distance traveled, it looks like some sort of buffer overflow error.  I don't see this problem when you use the mouse to move selections.

    I checked to make sure I have the latest version of the video driver for my NVIDIA Quatro FX570.  I also tried to work with no hardware acceleration and no handset, written.  What happens on Windows XP SP3 with all current updates.

    It became so bad that I have to do a save as every fifteen minutes to avoid losing data.

    Why not use my mouse for all movements?  Because it is not as specific and not so easy to limit to only one dimension of the movement.   My hand is not as stable as it once was.

    I'm hoping someone will have a suggestion that will clear up this problem.

    As I have indicated, I had the same problem with 8.5 and just DID a new install of Labview 2009.

    Since it is possible that my three monitors configuration, which of course requires more memory video, may be at the origin of the problem, I am satisfied with workaround by dragging the objects closer to their final destination and then using the arrow keys.

    Three monitors are ideal for the front, block and help/Internet/probe damaged.  When I got to work in the field with a single monitor, I felt severely handicapped.

    You can consider the issue closed.

    Thank you for trying to reproduce the failure.

  • Excel cells don't no shading when non-adjacent cells are selected with the Ctrl key

    When cells not adjacent are selected in any spreadsheet Excel 2007 that normal cell shading shows which cells are considered for avg, sum count etc works in the lower tray of Excel.  Unexpectedly when I now select cells not adjacent no shading appears and I have no idea of cells that have been selected.  Is this some sort of setting usless that I inadvertently threw it or is this a real Excel error?

    http://www.Microsoft.com/Office/Community/en-us/flyoutoverview.mspx

    Above is the link with the Office discussion groups.

    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.Excel.misc&lang=en&CR=us

    And Excel Newsgroup.

    There are different groups of discussion Excel listed in the main link.

    Hope that helps.

    See you soon.

    Mick Murphy - Microsoft partner

  • Laptop warns constantly bad hardware Insertion/withdrawal with the noise and the icon

    My laptop uses repeatedly insert/remove hardware alert when I did nothing. The Windows materiel.wav audio file is played and immediately followed by a materiel.wav Windows. In this case completely randomly and when making external hardware usb. Alerts are becoming increasingly common and is accompanied by appearing and disappearing immediately remove device icon.

    I disabled the sounds related to insertion and removal of hardware and sounds have disappeared, but the icon blinks always upward. This can only mean that the computer detects incorrectly insertion/deletion of material.

    Anyone know what this might be or how to fix?

    Thank you

    Hey Karena R,.

    Thank you for your help. I worked on that it's actually a problem of material in this particular brand of laptop Dell. I did things you suggested and used Device Manager to uninstall the USB etc. root hubs, and in doing so I noticed a mistake in the MMC disk section. The icon and the alerts flashing to the top has momentarily said MMC device.

    I checked online and found that the MMC device or the memory on this particular laptop card reader is at the front under the touchpad, that the sensors for the memory card are inadvertently set off by the movement and pressure on the keyboard itself. The sensors have been in contact with the "Virgin" card that comes with the laptop to go out when not to use a memory card. So why the sensors seem to not notice and then immediately realize he is not a real map.

    Thanks for your help, and if you see someone having this problem again, I suggest to correct errors on the device of the MMC or removing the blank card. I removed and I have not had the problem since.

    JumpXav

  • Lasso tool polygon binding angles trying to add to the selection with the SHIFT key

    Since upgrading (downgrading?) of Photoshop CS6 Extended Photoshop CC I have a problem with the lasso tool of polygon limited at certain angles when you try to add to a selection.

    Here's the scenario, I select a color background with the magic wand tool, then I would like to add a few things to the selection, so I click on the polygon lasso tool and hold the SHIFT key to add to the playlist and then start to use the polygon lasso tool... often very randomly the polygon lasso tool will limit his movements to a 90 degree angle Sometimes something that seems like an angle of 30 degrees and sometimes he'll do any.

    I'm doing something wrong or is this a bug?

    The SHIFT key has two functions in the creation of a selection.  The first is as you know to add to any selection using another selection tool.  The second is forced to angles in drawing and selection, but also rotation tools.  So for your example, you have to hold down the SHIFT key when you click on to add to your selection using the polygon lasso tool, but after making the first click with the tool, Photoshop knows that you want to add to the selection.  So do not hold the SHIFT key after the first click, otherwise Photoshop assumes that you also want to compel the angles drawing of your choice.  (Unless that's what you really want to)

  • What happened to the ability to hide the "mobile dash" (CTRL/CMD (H) in Photoshop?  I can't see the edges of my selection with the mobile dotted lines in the way!

    I used Photoshop since version 2.5 when it came to 16 disks.  In all versions I've bought over the years (many) up to CS3, I've always been able to use CTRL + H (Windows) or CMD + H (Mac) to hide the "mobile dash" edge of the selection.  This is extremely useful when doing all sorts of adjustments where the outline of the selection must be considered while "fiddling with the buttons" (so to speak).  Without being able to hide the limits of selection ("mobile dash"), I often have to get a better idea, cancel the selection, get disgusted that the edge is not what I want, then have to cancel, select new, try again... over and over again.   It is a SIMPLE feature, but the lack of it, driving me crazy.  HELP, I tried, but it doesn't have the height of the promise.  If there is a way to hide the dotted moving line, where is the menu item, and what the shortcut?

    You can assign Ctrl/Cmd-H to hide the edges of the selection (Edit > keyboard shortcuts) only, if you want to hide everything, but you will be notified if any other function has the shortcut.

  • Removal of the track selected with the Lasso (Q) tool

    I am running the tool lasso through some ovals (diagram below), and I want to just delete these forms that I run the lasso tool, however, seems Lasso to select anything within its space tent 'bridge '.

    (I understand his choice of anchors in this form). Is it possible to choose the oval shapes only (fast) it seems that I must now select them individually (like a bird with crumbs).

    This is the direction of drag lasso

    lasso.jpg

    This is the result of the selection of this movement of lasso.

    lasso2.jpg

    I use illustrator CS6 Version 16

    BlueFire,

    I fear this is how it works (imagine your movement (part of) the lasso loop).

    For your purpose, you can better off ShiftClicking/ShiftClickDragging with the selection direct tool, hold Alt/Option If you want to catch all paths.

  • I have a list of selection with the value yes and no

    I am 10 select list with the value yes or no

    I need to launch a dynamic action, and so I have a variable that indicates the number of selection selected list which has been chosen as Yes or no...

    How can I realize this is apex 4.2 db 11g...

    Thank you

    Published by: zycoz100 on March 4, 2013 12:05

    Brute force method:

    Dynamic Action using a PL/SQL block with something like:

    count := 0;
    Begin
    If :P1_Select_List_1 = 'yes'
      count := count + 1;
    End If;
    If :P1_Select_List_2 = 'yes'
      count := count + 1;
    End If;
    If :P1_Select_List_3 = 'yes'
      count := count + 1;
    End If;
    . . .
    End; 
    

    ???
    Howard

Maybe you are looking for