Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Generate an auto increment primary key in Oracle

I want to create a primary key auto increment under oracle!
I had created an output table (Oracle)  and  I want to add an automatic primary key! how can I do that ?


0683p000009MBEQ.png 0683p000009MBEV.png 
Labels (2)
6 Replies
Anonymous
Not applicable
Author

Anonymous
Not applicable
Author

 Thanks for your reply but it doesn't work ! I get this error 
ORA-00957: duplicate column name
0683p000009MBEa.png 0683p000009MBEf.png 0683p000009MBAy.png
Anonymous
Not applicable
Author

You are adding an extra ID column. Your schema already includes it and you are adding a new one with your advanced settings. Change the "Before" to "Replace" in the advanced settings.
Anonymous
Not applicable
Author

Even when I change the "Before" to "Replace", I still get the same error 😕  
Anonymous
Not applicable
Author

Simply set the ID column in the schema as inactive or better remove it.
Anonymous
Not applicable
Author

You need to change "Colonne de ref" to "ID" if you haven't. You are essentially replacing the value that would have been placed in this column with the next value of the sequence. 
EDIT: ....or do what Jlolling said. Either will work