开发工具:Microsoft Visual Studio 2005 数据库:Microsoft SQL Server 2005 说明:这里建立的数据库名为Demo,有一个学生表Student,为操作方便起见,我只添加两个字段:studentnum和studentname. 一、SQL语句: 代码如下: –create database Demo use Demo create table Student ( studentnum char(14) primary key, studentname varchar(30) not null ) insert into Student value