|
Distinct Types. Not sure what you mean by writing UDF's. In this
example, you are defining customer number to be VARCHAR(7). Now
anywhere you define a field that needs customer number you just say
UDT_CUSTOMER_NUMBER.
CREATE DISTINCT TYPE UDT_CUSTOMER_NUMBER AS VARCHAR (7) WITH
COMPARISONS ;
LABEL ON DISTINCT TYPE UDT_CUSTOMER_NUMBER IS 'Customer number
definition';
On Tue, Feb 1, 2011 at 1:24 PM, DeLong, Eric wrote:
Alan, are you referring to SQL User Defined Types (UDTs)? I never
used them, mostly because I didn't want to write all the UDFs
needed to process the UDTs. I'll stick with primitive types, and
build this logic into my service programs.
Alan Campin on Tuesday, February 01, 2011 2:03 PM wrote:
This is getting weird. I keep sending responses but they never
get through.
Why not use SQL types? Isn't that what they are for?
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.