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



try:
SELECT length(trim(invoices)) FROM law8extn/checkout

"Norbut, Jim" <Jim.Norbut@xxxxxxxxxxxxxxx> 01/07/08 11:45 AM >>>

Have a field that is 512 characters long.

How do I find out how many characters are actually used thought.



CREATE TABLE LAW8EXTN/CHECKOUT)

TRANS_NBR CHAR(10) NOT NULL WITH DEFAULT,

CHECK_DATE DATE NOT NULL WITH DEFAULT,

VENDOR CHAR(9) NOT NULL WITH DEFAULT,

VENDOR_VNAME CHAR(50) NOT NULL WITH DEFAULT,

BASE_CHK_AMT NUMERIC(15,2) NOT NULL WITH DEFAULT,

INVOICES CHAR (512) NOT NULL WITH DEFAULT);



SELECT character_length(invoices) FROM law8extn/checkout



Gives me



CHARACTER_LENGTH

512

512

512

512

512

512

512



And so on and so on.....but I know for a fact that not all 512
characters are used.



SELECT invoices FROM law8extn/checkout



INVOICES

200512:200512

3631

ADV302007

77751

5335250:F0008520

110405:113005

47285:44512

3351:3352:3353:3354:3355

14564743:14505256

311335:311060

140

2005120105

932444

6001607910

519979

121605

121605




As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.