Microsoft
Software
Hardware
Network
Question : SQL Statement. Copy and paste characters from cell into another in same record
The table PartRevisions has the following columns:
(<imrPartID, char(30),>
,<imrPartRevisionID, char(15),>
,<imrPartImageFileName, char(70),>)
At the moment, most of the values in imrPartImageFileName are blank. I would like to copy all the characters from imrPartID (excluding whitespaces) and paste it into the imrPartImageFileName cell and add ‘.jpg’ after it.
Please see image attached it has the first five records already done.
How can I do this with a SQL statement? I would like to check results first with a Select statement before using Update or Insert
Thanks!
partRevisions.gif
(15 KB)
(File Type Details)
partRevisions Table
Answer : SQL Statement. Copy and paste characters from cell into another in same record
sorry I forgot one '
update PartRevisions set imrPartImageFileName = LTRIM(RTRIM(imrPartID)) + '.jpg'
where imrPartImageFileName = ''
Random Solutions
iSeries - Monitor multiple message queue
Sharepoint Employee Tracker
Access Update Query To Update Date From A Query
Printing issues: Printing to a Microsoft Terminal server 2003
backspace deleting chunks of text
10.0.0.3 address on 192.168.1.x network
Cannot connect to the virtual machine in Server 2008 after Hyper v set up
pattern matching regular expression
How to merge two List?
ORDER BY items must appear in the select list if the statement contains a UNION operator.