there is such a table:
┌──────┬──────────────────────┬────┐ │ Path │ Name │ id │ ├──────┼──────────────────────┼────┤ │ 0 │ D:\1.bat │ 1 │ │ 0 │ D:\Nichrome.rar │ 2 │ │ 0 │ C:\pagefile.sys │ 3 │ │ 0 │ E:\Уроки вождения.avi│ 4 │ │ 0 │ D:\$RECYCLE.BIN │ 5 │ └──────┴──────────────────────┴────┘ you need to break the second column into components and lead to this form:
┌──────┬──────────────────────┬────┐ │ Path │ Name │ id │ ├──────┼──────────────────────┼────┤ │ D:\ │ 1.bat │ 1 │ │ D:\ │ Nichrome.rar │ 2 │ │ C:\ │ pagefile.sys │ 3 │ │ E:\ │ Уроки вождения.avi │ 4 │ │ D:\ │ $RECYCLE.BIN │ 5 │ └──────┴──────────────────────┴────┘ the problem is that there are about 800 thousand lines, and UPDATE is corrected line by line with the UPDATE operator, in 5 minutes (more in IIS I don’t know where to set up, all settings are ignored) only 32000 lines are obtained, I don’t know how to enter several hundreds in 1 rows, as in the case of the INSERT statement, a script without UPDATE requests to the database bypasses all 800 thousand rows in just 40 seconds. Can there be minds that can help? Already thought the whole thing in CSV unload and shovel through the file, I think it will turn out many times faster
update tab set path=substr(name,1,3), name=substr(name,4)just before this check with select that these substr really give what you expect - Mikepathandfilename, notdriveand something else. - teranPath= 0 condition. In this case, if the query is interrupted, it can be restarted and it continues from the interruption point, since after execution the cell will not be equal to 0 - Sergey Strelchenko