update 表名 set state=2 where [id]=171 select state from 表名 where id=171 结果查出来的state总是一。 后来突然想起来,state的类型可能是bit,一查果然是