题目链接http://blog.youkuaiyun.com/cnlht/article/details/13020739#comments
--创建SPJ数据库及插入数据
*/
--创建数据库
create database SPJ;
go
use SPJ;
go
--创建数据库表
create table S (
SNO char(9) primary key,
SNAME char(20),
STATUS char(10),
CITY char(20)
);
create table P(
PNO char(9) primary key,
PNAME char(20),
COLOR char(10),
WEIGHT smallInt
);
create table J(
JNO char(9) primary key,
JNAME char(20),
CITY char(20)
);
create table SPJ(
SNO char(9),
PNO char(9),
JNO char(