Practica 1
Practica 1
3085]
(c) Microsoft Corporation. Todos los derechos reservados.
C:\Users\nadia>cd C:\xampp\mysql\binC:\xampp\mysql\bin
El nombre de archivo, el nombre de directorio o la sintaxis de la etiqueta del
volumen no son correctos.
C:\Users\nadia>C:\xampp\mysql\bin
"C:\xampp\mysql\bin" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
C:\Users\nadia>cd C:\xampp\mysql\bin
C:\xampp\mysql\bin>mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 10.4.32-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
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 '20,
"[email protected]", "Juan", "(55)53203044", "123abc", "Admin")' at line 1
MariaDB [07_practica_nadia]> insert into usuario
-> (20,
-> "[email protected]",
-> "Juan",
-> "(55)53203044",
-> "123abc",
-> "Admin");
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 '20,
"[email protected]",
"Juan",
"(55)53203044",
"123abc",
"Admin")' at line 2
MariaDB [07_practica_nadia]> insert into USUARIO
-> (20,
-> "[email protected]",
-> "Juan",;
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 '20,
"[email protected]",
"Juan",' at line 2
MariaDB [07_practica_nadia]> insert into USUARIO
-> ( 20 int,
-> );
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 '20
int,
)' at line 2
MariaDB [07_practica_nadia]> insert into USUARIO
-> (20,
-> '[email protected]',
-> 'Juan');
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 '20,
'[email protected]',
'Juan')' at line 2
MariaDB [07_practica_nadia]> insert into USUARIO value
-> (20,
-> "[email protected]",
-> "Juan",
-> "(55)53203044",
-> "123abc",
-> "Admin");
Query OK, 1 row affected (0.480 sec)
MariaDB [07_practica_nadia]>
MariaDB [07_practica_nadia]> describe categoria2;
+-------------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+----------------+
| idc | int(11) | NO | PRI | NULL | auto_increment |
| nombre | varchar(30) | YES | | NULL | |
| descripcion | varchar(60) | YES | | NULL | |
+-------------+-------------+------+-----+---------+----------------+
3 rows in set (0.273 sec)
MariaDB [07_practica_nadia]>