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
encrypt database connection string ASP / MS Access
add name to combo box on form
SQL Percentage error message
php function parameter type
vb.net and pl sql
Failing dual boot system
!!CRITICAL ERROR: Memory retention failure, unflushed cache lost!!!
T-SQL - Grouped query that concatenats one field with text for several rows with same ID
Robocopy - How do i copy images from one directory structure to a single folder?
Change the default image on a Windows Forms app in VB.NET