SQL中replace()函數的用法

replace()函數表示將用一個字符串替換字符串中的所出現的特定內容。語法爲:replace(字段1,字段2,字段3),意思爲字段3將會替換字段1裏與字段2相同的內容 函數 列如:字符串 table1table stateselect 20語法 select replace(state,'2','1') from table1tab 結果以下:字符 stateab 10
相關文章
相關標籤/搜索