次のようにテーブルを作成する必要があります
借り手(customerNo、LoanNo)
顧客は、3つ以上のローンを借りていない場合、ローンを借りることができます。
次のようにテーブルを作成しました
create table borrower(
customerno int(5),
LoanNo int(5),
primary key(customerno,loanno),
check( customerno not in
(select customerno from borrower group by customerno having count(loanno)>=4))
);
しかし、それは私にエラーを与えます
[root@localhost:3306] ERROR 1146: Table 'test.borrower' doesn't exist
誰かがこのエラーを修正する方法を教えてもらえますか?