Re: Reality check on PFs created as SQL TABLEs
Daniel Gross <[email protected]> Wed, 10 Jun 2026 19:43:41 +0200
| Newsgroups | gmane.comp.hardware.ibm.midrange |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected]: > > 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 > > [email protected]<mailto:[email protected]> > > > > ________________________________ > From: MIDRANGE-L <[email protected]> on behalf of James H. H. Lampert via MIDRANGE-L <[email protected]> > Sent: Wednesday, June 10, 2026 19:23 > To: Midrange Systems Technical Discussion <[email protected]> > Cc: James H. H. Lampert <[email protected]> > 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: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/midrange-l > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/midrange-l. > > Please contact [email protected] for any subscription related questions. > > -- > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/midrange-l > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/midrange-l. > > Please contact [email protected] for any subscription related questions. > -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/midrange-l or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l. Please contact [email protected] for any subscription related questions.