SQL/400 field editing

2,555 pts.
Tags:
AS/400 SQL
SQL
SQL/400
What is the best (easiest!!) way to add editing to fields in an SQL-created table?
ASKED: April 20, 2009  9:27 PM
UPDATED: December 15, 2009  8:12 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can use the <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp”>ALTER TABLE</a> SQL statement to add a check constraint. Or you could use the native <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp”>ADDPFCST</a> (add physical file constraint) as well. Your constraint would need to follow SQL syntax.

CWC
**********************

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    "editing"? You mean like edit words and edit codes? SQL TABLEs don't have editing. Editing is a reporting function, not a column definition function. I suppose you might be able to define a LF with editing over the table and reference the LF, though I've never tried (nor actually heard of anyone who has). I would expect that it wouldn't do much good though, except in HLL programming that used native I/O. But that probably messes with the purpose of using SQL for the CREATEs in the first place. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following