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



"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 07/06/2016
10:54:16 AM:
currently this file is a legacy DDS file, but if I want to "reject" this
byte, as invalid data, as I am told our mySQL databases do, how would I
code my DDL?

Unfortunately, DDL doesn't have an efficient means of restricting
the value of character data. It can be done, but the overhead of doing so
is usually not acceptable. For example, an IBMer gave me the following as
the least expensive means of validating character data in DDL. The
following allows alphanumeric characters and blanks. I'd prefer a Regular
Expression for this but that may not be less overhead, either.

CONSTRAINT ACABBRVT_ABVCDE_CK01
CHECK(translate(ABBR_CODE, '1',
' abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789',
'1') = '1')

Sincerely,

Dave Clark

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.