× 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.



On 4/5/13 4:56 AM, rob@xxxxxxxxx wrote:
Try this SQL statement:
SELECT *
FROM qsys2.syscolumns
WHERE SYSTEM_TABLE_NAME='yourtable'
AND SYSTEM_TABLE_SCHEMA ='yourschema'
to see if that returns the information you want on your floating points.

On your other topics...
Your assuming every table has a primary key. I wish!

There are many fine objects in QSYS2 which could help.
Want to know what tables are referenced in a view? SYSVIEWDEP.
Want to know what indexes are built against a table? SYSINDEXES
Want to know if a table has a primary key constraint? SYSKEYCST
However many of the logical files created by DDS are hard to keyhole into
either a view or an index. So they may not appear here.
An unrecommended practice is to access the QADB* family of tables
directly. If you go that route, try it with a person with minimal
security before you turn the process loose to the public.

Thanks. On preferred display decimal places, there appears to be no such animal among the columns of SYSCOLUMNS, and so the answer would seem to be the same as the answer on relative record number: "That concept is foreign to SQL." At any rate, it's not a big deal, by any means.

As to finding my way from a view to its based-on table(s), in a way that's not specific to DB2/400, well, that's a bit more important, given that the ultimate object here is to be able to access any SQL-accessible DB, so long as a JDBCR4-compatible JDBC driver can be found for it.

--
JHHL


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.