Mysqlday 2
Mysqlday 2
C:\Users\vspaw>mysql -u root -p
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 8.0.34 MySQL Community Server - GPL
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
)' at line 2
mysql> CREATE TABLE author(
-> authorid int(10)PRIMARY KEY,
-> AFname varchar(20)NOT NULL,
-> nationality varchar(40),
-> gender enum('M','F')
-> );
ERROR 1050 (42S01): Table 'author' already exists
mysql> describe author;
+-------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------------+------+-----+---------+-------+
| authorid | varchar(10) | NO | PRI | NULL | |
| AFname | varchar(30) | NO | | NULL | |
| nationality | varchar(40) | YES | | NULL | |
| gender | enum('M','F') | YES | | NULL | |
+-------------+---------------+------+-----+---------+-------+
4 rows in set (0.00 sec)
mysql