Dennis Lovelady wrote:
select field1, field2, char(35) as newfield, field3 from oldfile

FIELD1 FIELD2 FIELD4 FIELD3
a b 35 c
d e 35 f
g h 35 i
******** End of data ********


How about this:

select field1, field2, ' (total 35 spaces) ' as newfield, field3
from oldfile

Should do the trick.

Joe

Golly Jeepers, Joe! Glenn is not the only tired one, huh?!!? How did I miss that?!?

One of the benefits of using SQL in a live environment: these sorts of techniques become second nature <grin>. I can't tell you how many times I've needed to populate data with fixed values in fields.

Joe

This thread ...


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

This mailing list archive is Copyright 1997-2026 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.