---
title: "判断表是否被改变过"
author: "devilhand"
date: "2012-03-15T10:20:14Z"
tags: []
categories: ["数据库"]
slug: "untitled"
draft: false
lastmod: "2012-03-15T10:20:14Z"
id: 1453991
url: "https://devilhand.iteye.com/blog/1453991"
---

```
--判断表是否被更改
select   checksum_agg(binary_checksum(*))   from  dbo.PrintLog
--判断表中每行是否被修改 
select   binary_checksum(*)   from  dbo.PrintLog
```