SQL

From MidrangeWiki
Revision as of 15:51, 6 April 2007 by MrDolomite (talk | contribs) (Tips: add link to www.mcpressonline.com article with code for RUNSQL custom command)
Jump to: navigation, search

SQL, or Structured Query Language, is a platform independent way of accessing databases. However, the version of SQL which runs on the AS/400, known as SQL400 or SQLDB2, does have syntax differences from standard wikipedia:SQL.

See also: SQL Primer and SOUNDEX

Tips

SQL7008 error
&FILE in &LIBRARY not valid for operation.
-- Code 3 -- &FILE is not journaled, or you do not have authority to the journal. Files with an RI constraint action of CASCADE, SET NULL, or SET DEFAULT must be journaled to the same journal.
  • Resolution: Use RUNSQLSTM with parameter COMMIT(*NONE)
RUNSQL command for ad-hoc SQL statements
"Partner TechTip: Blend SQL and RPGLE to Make Better Tools" by Kevin Forsythe

Categories