×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Hi Rob
Maybe I'm misunderstanding what you wrote.
If I created the table in a library other than QTEMP, then yes you CAN alter the table with the following SQL command in STRSQL
ALTER table NONqtemp/VACOMP ADD PRIMARY KEY (LCMPY)
With no problem
Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Wednesday, June 15, 2011 1:20 PM
To: Midrange Systems Technical Discussion
Subject: Re: Problem with adding primary key to a table
DDS vs SQL has NOTHING to do with it.
You can create a SQL index or view in QTEMP. You can create a DDS LF in QTEMP. You say this, I say that. Samething.
What you CANNOT do is either ALTER TABLE with SQL, or ADDPFCST outside of SQL, to add a unique key upon an existing table.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This thread ...
AW: Problem with adding primary key to a table, (continued)
This mailing list archive is Copyright 1997-2024 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.