文章分类 -  Database Technology

摘要:删除表中重复记录 作者: LazyBee http://lazybee.cnblogs.com/ 最近由于要给旧系统的表中增加主键(SQL Server2000的表),由于旧表中存在重复记录所以导致增加不上,所以需要写一段SQL语句来删除所有的重复记录(就是必须保留重复记录中的一条,维持数据记录的唯一性),我知道园子里大虾多,所以在这里集思广益,看看大家都有什么好的办法: 方法一: ... 阅读全文
posted @ 2008-06-06 11:36 Simon.guo 阅读(1090) 评论(0) 推荐(0)
摘要:All the objects that exist in the database called "model" are always included in all new databases that you create. You can add a stored procedure to the database called "model", so the next time yo... 阅读全文
posted @ 2008-06-05 13:35 Simon.guo 阅读(587) 评论(0) 推荐(0)
摘要:When creating your own stored procedures, you should not use the sp_ prefix, because when you execute any procedure called sp_.... then SQL Server will assume that the procedure exists in the master... 阅读全文
posted @ 2008-06-05 13:34 Simon.guo 阅读(225) 评论(0) 推荐(0)