摘要: SQL Server中主外键的定义:1.create table dept(dept_no int primary key,dept_name nvarchar(50) not null)insert into dept values(10,'IT'),(20,'Finance'),(30,'Eng... 阅读全文
posted @ 2014-07-16 15:11 cnmarkao 阅读(3014) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.cnblogs.com/Ryan_j/archive/2011/04/03/2004428.html重命名数据库很简单,选择数据库--右键--重命名数据库或者sp_renamedb 'oldDB' ,'newDB'但是你再新建的相同名字的数据库就会报错,提示数据库已经... 阅读全文
posted @ 2014-07-16 10:46 cnmarkao 阅读(728) 评论(0) 推荐(0) 编辑