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
Need help get introduced to Developer Tools inside IE8
mysql_fetch_array error
How do I fix a slightly blurry TV 2709W?
1628 Failed to complete installation - Simply Accounting
Are there any issues to be aware of with method overloading when using Web Services?
php and mysql
Exchange 2003 to Exchange 2010 Migration - Stuck at SSL & URL
Dell PE T300 Win 2008 server stuck in loop
Access Search Form
Multiple <html> Tags in Page?