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



That is what I did. Plus I used test data, not live data. 



Mike Wills
Lawson Programmer/Administrator
Taylor Development
Email: mnwills@xxxxxxxxxxxxxx
Direct Line: (507) 625-3187

-----Original Message-----
From: rob@xxxxxxxxx [mailto:rob@xxxxxxxxx] 
Sent: Monday, October 13, 2003 3:09 PM
To: Midrange Systems Technical Discussion
Subject: RE: Changing justification in a DB field

When given such advice it's always best to test with SELECT before you run
the UPDATE.

For example, try

select Substr('(100+ blanks)',1, 100-length(trim(MyField))
)||trim(MyField)
from MyTable

first, before attempting the update.

Rob Berendt
--
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." 
Benjamin Franklin 




"Metz, Zak" <Zak_Metz@xxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
10/13/2003 02:49 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
"Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
cc

Subject
RE: Changing justification in a DB field






Of course!

MyTable, MyField=char(100)

Update MyTable
Set MyField=
                 Substr('(100+ blanks)',1, 100-length(trim(MyField))
)||trim(MyField)

Adjust the 100's to whatever length you have.


> -----Original Message-----
> From: Wills, Mike N. (TC) [mailto:MNWills@xxxxxxxxxxxxxx]
> Sent: Monday, October 13, 2003 2:44 PM
> To: Midrange Systems Technical Discussion
> Subject: Changing justification in a DB field
> 
> 
> Hi all, I need to change the justification on a field some are left
> justified, others are right. Can I do this is SQL? It is a 
> text field, and I
> need them all right justified.
 
NOTICE: This E-mail may contain confidential information. If you are not
the addressee or the intended recipient please do not read this E-mail
and please immediately delete this e-mail message and any attachments
from your workstation or network mail system. If you are the addressee
or the intended recipient and you save or print a copy of this E-mail,
please place it in an appropriate file, depending on whether
confidential information is contained in the message.


_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing 
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.