Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> limit TABLE to only one record
I am looking to store an easily modifiable value that a VIEW can use,
without issuing any DDL statements. I'm guessing that a TABLE with one
record would be a good way. The question then is how to limit a TABLE
to only one record:
CREATE TABLE One_Record_Only
(
Id INT DEFAULT 1, Data INT, CONSTRAINT ORO1_Id_NN CHECK(Id IS NOT NULL), CONSTRAINT ORO1_Id_CK CHECK(Id = 1), CONSTRAINT ORO1_Id_PK PRIMARY KEY(Id)
Is there a more straightforward emthod to limit a TABLE to only one record?
Is there another way to accomplish the same goal?
B. Received on Wed Nov 14 2007 - 12:55:54 CST