UPDATE TableName SET bitColumn=bitColumn^1 where Coundition
公告版位
【好友限定】
好友只有一個人
目前分類:MS SQL (3)
- Jul 24 Tue 2018 15:04
[MS SQL] Update bit column to reverse
- Aug 07 Mon 2017 11:05
[MS SQL] 刪除重複資料
表格T 的欄位A 跟 欄位B 相同即為重複
sn 為唯一值
delete 表格T where sn not in(select max(sn) from 表格T group by 欄位A, 欄位B)
- Oct 17 Mon 2016 05:29
[MS SQL] charindex 資料庫欄位包含字串