Yes - primary key constraint is the way - the primary key "index" is embedded in the table/PF object.

CREATE TABLE xxxx (
xxx ....,
yyy ....,
CONSTRAINT "XXXX_PK" PRIMARY KEY (xxx),
...
);

But you can also create unique constraints directly in the table, and it will also create indexes, that are embedded in the table/PF object and create no extra objects.

HTH
Daniel

-> https://www.ibm.com/docs/en/i/7.6.0?topic=statements-create-table


Am 10.06.2026 um 19:32 schrieb stefan@xxxxxxxxxx:

Like
Create table ......
Column char( 100 ) not null with default
......
.....
Primary Key( column )


Best regards



Stefan



--

No trees were killed in the sending of this message, but a large number of electrons were terribly upset.



Stefan Tageson

+46 732 369934

stefan@xxxxxxxxxx<mailto:stefan@xxxxxxxxxx>



________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of James H. H. Lampert via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
Sent: Wednesday, June 10, 2026 19:23
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: James H. H. Lampert <jamesl@xxxxxxxxxxxxxxxxx>
Subject: Reality check on PFs created as SQL TABLEs

Just to be sure:

There isn't some oddball extension to SQL that I'm not aware of, such
that you can create a keyed PF via an SQL CREATE TABLE statement, right?

--
JHHL

(I just experienced what I'd thought was a weird asymmetry when
attempting to a LF as an SQL INDEX with a descending key; it turned out
that I'd misspelled "DESC," and SQL was treating "DSC" as a field
rename. You learn something new every day. This has been a fun week so far.)
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.


This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.