在SQL中修改某欄位的部分值,sql修改欄位部分

來源:互聯網
上載者:User

在SQL中修改某欄位的部分值,sql修改欄位部分

update AA set aa = replace(aa,'1234','規範') where aa like '%1234%'

怎在SQL SERVER中更改某欄位的部分值??

update AB set cd = replace(cd,'標準','規範') where cd like '%標準%'
 
SQL 陳述式 以某一個欄位為條件 更改某一個欄位的值

update table_name set col_name1=xxxx where col_name2='xxx';
table_name表名,col_name1要修改的欄位名 col_name2做為條件的欄位名,xxx值。
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.