我似乎无法弄清楚我的外键部分代码有什么问题?我已经查看了其他线程,似乎无法在没有错误的情况下使其工作。任何帮助都是极好的。感谢。
gulp.task('compileHandlebars', function () {
delete require.cache[require.resolve('./src/layout.json')]
var buildSettings = require('./src/layout.json');
var templateData = buildSettings,
options = {
batch : ['./src/assets/templates/'],
}
gulp.src('./src/index.handlebars')
.pipe(handlebars(templateData, options))
.pipe(rename('index.html'))
.pipe(htmlmin({collapseWhitespace: true}))
.pipe(htmlmin({removeComments: true}))
.pipe(gulp.dest('./dist'));
});
答案 0 :(得分:1)
您必须在courseTable之前运行instructorTable插入
答案 1 :(得分:1)
您无法插入此内容:
insert into courseTable
(courseNo,courseName,semester,bookNumber,instructorNumber)
values
(101,"Programming1","Spring",100,500),
(102,"Intro to Networking","Fall",110,600);
因为此表"101","102"
和instructorTable(instructorNumber)
中没有bookTable(bookNumber)
;
Primary key table
记录插入foreign key
之前, "courseTable"
必须先存在;