Linked Questions

55 votes
5 answers
280k views

i created a sequence using the following query, create sequence qname_id_seq start with 1 increment by 1 nocache; Now when i try to create a table which uses the above sequence, it is throwing the ...
Murali's user avatar
  • 811
72 votes
4 answers
160k views

I want to add a new auto increment primary column to a existing table which has data. How do I do that? I first added a column and then try to add a sequence after that, I lost how to insert and make ...
mallikarjun's user avatar
  • 1,862
22 votes
0 answers
42k views

What is the magical incantation to create an identity column in Oracle?
Mark Harrison's user avatar
0 votes
1 answer
6k views

I keep being told I am missing a right parenthesis but I'm not seeing it, can anybody point it out? CREATE TABLE Member ( MEMBER_ID int NOT NULL AUTO_INCREMENT , FIRST_NAME varchar(255) NOT NULL , ...
Howdy_McGee's user avatar
  • 10.7k
0 votes
3 answers
4k views

I am facing issue while inserting multiple row in one go into table because column id has primary key and its created based on sequence. for ex: create table test ( iD number primary key, name ...
user2862073's user avatar
0 votes
1 answer
3k views

this is my code. but i don't know where is the mistakes since i used 11g express edition. it shows error but no show which line the error CREATE TABLE hsstaff ( staff_ID int NOT NULL AUTO_INCREMENT, ...
user2969480's user avatar
0 votes
3 answers
4k views

I have some table and trying load data into it by selecting row from another table like below. insert into emp2(eid,ename,sal,my_seq_num) select eid,ename,sal from emp1; When I executed the above ...
prasad's user avatar
  • 359
-12 votes
2 answers
8k views

1.we can use "identity(Start_Value,Increase)" key word in SQL Server to auto increment filed. so, such like that any key word is available in Oracle 10g. if any body know that give me ans... and if ...
Dhaval Ghevariya's user avatar
-1 votes
2 answers
855 views

I have a table which doesn't have an ID. So I want to add a new column which is 1 to total row number. I opened a new column in the table but I don't know how to fill it with row count. I searched on ...
jason's user avatar
  • 7,224
-1 votes
1 answer
1k views

I'm relatively new to Oracle but I'm getting an error, ORA-00922, when I'm trying to execute the following statement: CREATE TABLE RT_action_items ( action_itemID INT NOT NULL AUTO_INCREMENT, ...
Corey Thompson's user avatar
2 votes
1 answer
764 views

I am trying to create a table, but keep getting the following error message: Warning: oci_execute(): ORA-00907: missing right parenthesis in ... on line 14 The following is the code that deals with ...
DemCodeLines's user avatar
  • 1,920
0 votes
1 answer
430 views

I am facing the issue while creating the Table in SQL, CREATE TABLE Worker ( WORKER_ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT, FIRST_NAME CHAR(25), LAST_NAME CHAR(25), SALARY INT(15)...
Mukesh Giri's user avatar
-1 votes
1 answer
337 views

Can anyone help me to auto-generate the empID field, so that we don't enter the value through the insert statement. ...
Gopichand's user avatar
  • 1,016
-3 votes
1 answer
133 views

CREATE TABLE Persons ( ID int NOT NULL AUTO_INCREMENT, LastName varchar(255) NOT NULL, FirstName varchar(255), Address varchar(255), City varchar(255), PRIMARY KEY (ID) ) Error starting at line 1 in ...
Suresh's user avatar
  • 1
0 votes
1 answer
79 views

I'm using oracle 11g xpress. I have created a simple table. I want that field each time a user inputs data to be incremented by 1, starting from 10000. Can you assist? My table is this: CREATE TABLE ...
Konstantinos's user avatar

15 30 50 per page
1
2 3 4 5
8