TICS
TICS
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create table inquilinos (inquilinos int (5) primary key,id varchar(8) not
null, nombres varchar(45) not null, pat
erno varchar(45) not null, materno varchar(45) not null, telefono varchar(40) not
null, correo varchar(200) not null, de
uda decimal(6,2) not null, fecha_ingreso date not null );
Query OK, 0 rows affected (0.02 sec)
mysql> create table inquilinos (inquilinos int (5) primary key,id varchar(8) not
null, nombres varchar(45) not null, paterno varchar(45) not null, materno
varchar(45) not null, telefono varchar(40) not null, correo varchar(200) not null,
deuda decimal(6,2) not null, fecha_ingreso date not null );
ERROR 1050 (42S01): Table 'inquilinos' already exists
mysql> DESCRIBE inquilinos;
+---------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+--------------+------+-----+---------+-------+
| inquilinos | int(5) | NO | PRI | NULL | |
| id | varchar(8) | NO | | NULL | |
| nombres | varchar(45) | NO | | NULL | |
| paterno | varchar(45) | NO | | NULL | |
| materno | varchar(45) | NO | | NULL | |
| telefono | varchar(40) | NO | | NULL | |
| correo | varchar(200) | NO | | NULL | |
| deuda | decimal(6,2) | NO | | NULL | |
| fecha_ingreso | date | NO | | NULL | |
+---------------+--------------+------+-----+---------+-------+
9 rows in set (0.02 sec)
mysql> INSER INNTO ASESORES VALUES(3, 'D125', 'VENTAS', 'DANIEL', 'MORA', 'CUEVA');
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'INSER
INNTO ASESORES VALUES(3, 'D125', 'VENTAS', 'DANIEL', 'MORA', 'CUEVA')' at line 1
mysql> INSERT INTO ASESORES VALUES(3, 'D125', 'VENTAS', 'DANIEL', 'MORA', 'CUEVA');
Query OK, 1 row affected (0.01 sec)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>