Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » AUTO_INCREMENT PK Column for Oracle Table
Re: AUTO_INCREMENT PK Column for Oracle Table [message #2152 is a reply to message #2151] Tue, 23 June 2009 13:58 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2368
Registered: April 2006
Location: Surrey, UK
Senior Member
I have tested his feature on my system using the following:
CREATE TABLE test_autoincrement (
  id number(10) NOT NULL,
  field1 varchar2(40) default NULL,
  field2 varchar2(255) default NULL,
  PRIMARY KEY  (id)
);
CREATE SEQUENCE test_autoincrement_seq;

REVOKE ALL ON test_autoincrement FROM PUBLIC;
GRANT SELECT,INSERT,DELETE,UPDATE ON test_autoincrement TO PUBLIC;
REVOKE ALL ON test_autoincrement_seq FROM PUBLIC;
GRANT SELECT,ALTER ON test_autoincrement_seq TO PUBLIC;

I then imported this new table, imported the columns, after which I examined the ID column and noted that the autoincrement property was set correctly. When I exported the table details the dict.inc file showed 'auto_increment' => 'y' on the key field.

Are you sure that you are following the instructions at http://www.tonymarston.net/php-mysql/oracle.html#auto.increm ent


 
Read Message
Read Message
Read Message
Previous Topic: LIST2 Pattern Problem
Next Topic: _cm_ListView_header
Goto Forum:
  


Current Time: Sun Nov 24 02:01:37 EST 2024

Total time taken to generate the page: 0.00919 seconds