CREATE TABLE `book_202151038` (
`no` int(11) NOT NULL,
`책이름` varchar(22) NOT NULL,
`저자` varchar(10) NOT NULL,
`출판사` varchar(10) NOT NULL,
`출판년도` year(4) NOT NULL,
`ISBN` int(30) NOT NULL
ADD PRIMARY KEY (`ISBN`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ADD PRIMARY KEY (`ISBN`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4' at line 8 in /users/2021/i2151038/public_html/2022/WebDB/test/create.php:17
Stack trace:
#0 /users/2021/i2151038/public_html/2022/WebDB/test/create.php(17): mysqli_query()
#1 {main}
thrown in /users/2021/i2151038/public_html/2022/WebDB/test/create.php on line 17