摘要: 其实有两个情况,1是完全重复。(设计时没有设定identity)完全重复:select distinct 字段,字段[,..] from table --找到不重复的记录……--这类重复需求通常是需要添加一个identity字段部分重复,指定字段重复,其他字段重复忽略不计(保留)(已经有identity的id了)select max(id) as id ,重复字段,重复字段 from table group by 重复字段,重复字段 having count(*)>1--找到重复的字段删除和保留操作。仅仅说第二种情况select max(id) as id ,重复字段,重复字段 i... 阅读全文
posted @ 2011-09-20 17:54 snowlueng 阅读(419) 评论(0) 推荐(0) 编辑
摘要: ImageFieldclassImageField(**kwargs)Default widget:ClearableFileInputEmpty value:Nonenormalizeto: AnUploadedFileobject that wraps the file content and file name into a single object.Validates that file data has been bound to the form, and that the file is of an image format understood by PIL.Error me 阅读全文
posted @ 2011-09-20 10:22 snowlueng 阅读(450) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示