Latihan 5
Latihan 5
5011]
C:\Users\user>cd c:/
c:\>cd xaampp/mysql/bin
c:\>cd xampp
c:\xampp>cd bin
c:\xampp>cd mysql
c:\xampp\mysql>cd bin
c:\xampp\mysql\bin>mysql -u root -p
Enter password:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Database changed
ERROR 1064 (42000): 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 'foreign key(kd_penerbit) references
penerbit(kd_penerbit) not null)' at line 5
ERROR 1064 (42000): 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 'foreign key(kd_penerbit) references
penerbit(kd_penerbit))' at line 5
MariaDB [latihan_5]> describe penerbit;
+---------------+--------------+------+-----+---------+----------------+
+---------------+--------------+------+-----+---------+----------------+
+---------------+--------------+------+-----+---------+----------------+
ERROR 1064 (42000): 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 'foreign key(kd_penerbit) references
penerbit(kd_penerbit) not null)' at line 5
-> ;
+---------------+--------------+------+-----+---------+----------------+
+---------------+--------------+------+-----+---------+----------------+
| kd_penerbit | int(11) | NO | PRI | NULL | auto_increment |
+---------------+--------------+------+-----+---------+----------------+
+-------------+--------------+------+-----+---------+----------------+
+-------------+--------------+------+-----+---------+----------------+
+-------------+--------------+------+-----+---------+----------------+