473,386 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

need help for oracle insertion

Hi,
Here i have to insert the values into a table which contains one autoincrement field.This field have to be automatically increment when we insert some values into that table................And plz giv me if there are any links..............i will be very thankful if u could help me.....................................
Jun 7 '07 #1
5 1782
debasisdas
8,127 Expert 4TB
To auto-increment the field value, create a SEQUENCE and use sequencename.nextval in the insert statment.

Hope that helps you in solving your problem.
Jun 8 '07 #2
shall we use that in java.i mean shall we can write triggers in java ..............
Jun 11 '07 #3
Saii
145 Expert 100+
shall we use that in java.i mean shall we can write triggers in java ..............
i think java has some inbuilt class that wraps oracle sequences but not sure. Alternatively, you can do the "insert into table" using a procedure and then use sequence.nextval in the proc and execute this proc in your java application
Jun 12 '07 #4
debasisdas
8,127 Expert 4TB
shall we use that in java.i mean shall we can write triggers in java ..............
u can use the sequence with in the sql statment or can call from with in a procedure.

so far as the trigger is concerned, triggers are part of Databse U can't write trigger in Java.

U can't call a trigger explicitely. trigger FIRES automatically when the dependent EVENT on which the trigger is based is executed. It might be directly through any sql statment or from any procedure.
Jun 12 '07 #5
Thank you very much.........

And if possible could you provide clear information regarding those things....I will be very thankful if u help me................
Jun 12 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Raghavendra Mahuli | last post by:
i need to store a lot of integers(say 10,000) in a datastructure. The constraints are: 1. It should be fast. 2. It should be orderded or sorted. 3.Insterting and deleting should be fast. 4. The...
2
by: pc | last post by:
Hi, Currently we are using a CDwordArray type array to store some DWORD data. This data is dynamic and we need to continuously grow the array size using SetAtGrow() . Due to performance reasons,...
20
by: Patrick Guio | last post by:
Dear all, I have some problem with insertion operator together with namespace. I have a header file foo.h containing declaration of classes, typedefs and insertion operators for the typedefs in...
9
by: AnandaSim | last post by:
Hi All, I've had Access 97, 2000 connections to the corporate Oracle database for a few years now - but seldom use it. When I did use it years ago, performance was not fast but the features were...
5
by: John N. | last post by:
Hi All, Here I have a linked list each containing a char and is double linked. Then I have a pointer to an item in that list which is the current insertion point. In this funtion, the user...
0
by: simonth | last post by:
hi guys i m writing a VB.NET app using the Oracle Lite database as the data source. Got a problem with inserting unicode chars e.g. chinese into the database when using the dataadapter and...
4
by: Andrix | last post by:
Hi, I have a table with 20.000.000 of tuples. I have been monitoring the performance of the insertion and updates, but not convince me at all. The table have 30 columns, what and 12 of it, are...
1
by: spriyasenthil | last post by:
How to Rollback between two different DB in ORACLE? -------------------------------------------------------------------------------- Hi all! Am using two different DB in ORACLE! Letz take it...
8
by: Godzilla | last post by:
Dear all, I cannot find a solution for my problem with inserting a blob object (>4000 in length) into an ORACLE database via ODBC. I have tried the two ways of inserting the blob object (a...
3
by: dilippanda | last post by:
Hi All, I am experiencing performance issue while merging records from a select query. Also it is getting difficult to insert 100000 selected records into table which is taking around 30 mins. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.