VStudio - make and existing field the primary key?

Barry G. Sumpter BarrySum at BigPond.Net.AU
Thu May 31 23:03:19 CDT 2007


When I execute a Valentina Dump of a test database I get this:

CREATE TABLE "Test" (
	"Test" LONG  NOT NULL UNIQUE INDEXED);



I believe is should be this:

CREATE TABLE "Test" (
	"Test" LONG  PRIMARY KEY NOT NULL UNIQUE INDEXED);

Is the dump missing the Primary Key?





-----Original Message-----
From: Barry G. Sumpter [mailto:BarrySum at BigPond.Net.AU] 
Sent: Friday, 1 June 2007 1:29 PM
To: 'Barry G. Sumpter'; valentina-studio at lists.macserve.net
Subject: RE: VStudio - make and existing field the primary key?

If there is an existing Primary Key (PK) then you must remove the primary
key to have any other candidates.

I can remove the primary key notation on a field - VStudio errors out and
any subsequent attempt to create a primary key errors out in the same way.



I Believe, the existing field has to be Long, Unique, indexed, and NOT NULL
to be a candidate.
  And the existing data must match the Unique attribute. i.e. no duplicate
data.



-----Original Message-----
From: Barry G. Sumpter [mailto:BarrySum at BigPond.Net.AU] 
Sent: Friday, 1 June 2007 12:53 PM
To: 'valentina-studio at lists.macserve.net'
Subject: RE: VStudio - make and existing field the primary key?

How do you make and existing field the primary key?



More information about the Valentina-studio mailing list