直接在ISQL里执行这个替换的语句怎么不行?
直接在ISQL里执行这个替换的语句怎么不行?总提示substr(files_loc,1,patindex('\',file_loc)-1 存在语法错误??
while (select patindex('\', file_loc) from is_files > 0
begin
update is_files set fileloc = substr(file_loc,1,patindex('\', file_loc) -1 )||'/'||substr(file_loc, patindex('\', file_loc)+1 )
end
|