SQL Serverのオブジェクト作成コードを「手動でコーディング」したことがなく、SQL ServerとPostgresの間で外部キーのデクレレーションが異なっているようです。これまでのところ私のSQLです:
drop table exams;
drop table question_bank;
drop table anwser_bank;
create table exams
(
    exam_id uniqueidentifier primary key,
    exam_name varchar(50),
);
create table question_bank
(
    question_id uniqueidentifier primary key,
    question_exam_id uniqueidentifier not null,
    question_text varchar(1024) not null,
    question_point_value decimal,
    constraint question_exam_id foreign key references exams(exam_id)
);
create table anwser_bank
(
    anwser_id           uniqueidentifier primary key,
    anwser_question_id  uniqueidentifier,
    anwser_text         varchar(1024),
    anwser_is_correct   bit
);クエリを実行すると、次のエラーが発生します。
メッセージ8139、レベル16、状態0、行9外部キーの参照列の数が、参照列の数と異なります(テーブル 'question_bank')。
エラーを見つけられますか?