공부/SQL
[MSSQL] 특정 문자 변경 쿼리
청린수아
2021. 8. 13. 00:04
//조회시 변경하여 조회 select (replace(컬럼명,'변경전데이터','변경후데이터')) 컬럼명 from 테이블명 //예시 select (replace(strImageFilePath,'\\192.168.0.100\','')) strImageFilePath from tbl_Result //실제데이터 변경 Update 테이블명 Set 컬럼명 = (replace(컬럼명 ,'변경전데이터','변경후데이터')) //예시 Update tbl_Result Set strImageFilePath = (replace(strImageFilePath,'\\192.168.0.100\','')) |