|
Hi, just some additional remarks for system names:1. System Names are automatically created for all database objects and fields whose names are longer than 10 characters, except you specify your own system names. As already pointed out, for tables, views and indexes the system names can be changed by using the SQL command RENAME. When using long field names and user defined short system field names, the system names must be specified in the CREATE TABLE statement.
There is no way to change them after creating the table. Example: Create Table MYSCHEMA/OrderHdr(ORDER_NUMBER for Column ORHNBR char (5) Not Null with Default, CUSTOMER_NUMBER for Column CUSNBR char (5) Not Null with Default, ORDER_DATE for Column ORHDTE Date Not Null with Default, ORDER_DELIVERY for Column ORHDLY Date Not Null with Default, ORDER_SALESREP for Column SRNBR char (10) Not Null with Default, ORDER_TOTAL for Column ORHTOT dec (11, 2) Not Null with Default);
2. There is no guarantee when recreating the table, view or index and system generated system names are used, that the same object will receive the same system name, it had before.
3. When using long names and unqualified access with system naming, the system names must be used, i.e. the system tables must be searched to determine the system names. This will reduce performance. With SQL naming only tables from a single schema can unqualified be used and the long names can be directly used.
Mit freunlichen Grüßen / Best regards Birgitta Hauser"Shoot for the moon, even if you miss, you'll land among the stars." (Les Brown)
"If you think education is expensive, try ignorance." (Derek Bok)----- Original Message ----- From: "Mike Cunningham" <MCUNNING@xxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx> Sent: Friday, October 06, 2006 19:10 Subject: RE: Table Definitions DDS or SQL?
that would be nice :) Then let me change the MIKE0001 to anything I wantrob@xxxxxxxxx 10/6/2006 1:08:25 PM >>>Yeah, that's a fix. I wonder if he wanted something to pop up like "Warning: Due to (invalid characters) or (length of object>10) I am going to call this table name MIKE0001". Rob Berendt -- Group Dekko Services, LLC Dept 01.073 PO Box 2000 Dock 108 6928N 400E Kendallville, IN 46755 http://www.dekko.com "Wilt, Charles" <CWilt@xxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 10/06/2006 12:37 PM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx> cc Subject RE: Table Definitions DDS or SQL? RENAME TABLE IAMMORETHAN10 to system name MY10CHRNAM; Charles Wilt -- iSeries Systems Administrator / Developer Mitsubishi Electric Automotive America ph: 513-573-4343 fax: 513-398-1121-----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx Sent: Friday, October 06, 2006 12:33 PM To: RPG programming on the AS400 / iSeries Subject: RE: Table Definitions DDS or SQL? I think he is talking about the situations where no one counted the characters in the first place and did a straight CREATE TABLE IAMMORETHAN10... Rob Berendt -- Group Dekko Services, LLC Dept 01.073 PO Box 2000 Dock 108 6928N 400E Kendallville, IN 46755 http://www.dekko.com-- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.