|
Michael, INSERT INTO RGTSYS/UELLU (EENAME,EUSRID, ECPM, ECPMC) select EENAME, 'NEWUSER', ECPM, ECPMC from uellu where eusrid = 'SMITHMI' will copy all of your entries, and assign then to 'NEWUSER'. hth, Eric DeLong Sally Beauty Company MIS-Project Manager (BSG) 940-297-2863 or ext. 1863 -----Original Message----- From: midrange-l-bounces+edelong=sallybeauty.com@xxxxxxxxxxxx [mailto:midrange-l-bounces+edelong=sallybeauty.com@xxxxxxxxxxxx]On Behalf Of Smith, Mike Sent: Friday, October 14, 2005 9:45 AM To: midrange-l@xxxxxxxxxxxx Subject: SQL Insert I'm trying to create an SQL statement that will take records from a file and duplicate them. However, I want 1 field to change. I can get this to work INSERT INTO RGTSYS/UELLU (EENAME,EUSRID, ECPM, ECPMC) select EENAME, EUSRID, ECPM, ECPMC from uellu where eusrid = 'SMITHMI' This copies the records as they are, however, I want to change the value of EUSRID when I do the copy. I haven't been able to get this to work. Is this possible? Michael Smith iSeries.mySeries.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.