0 évaluation0% ont trouvé ce document utile (0 vote)
19 vues6 pages
Mysql> insert into alumno(09510586,f,Kristel Anahy,1991-08-14); 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 '09510 586,f",Kristel Anahy",1991-0814). Clave_materia varchar(20) YES NULL co
Mysql> insert into alumno(09510586,f,Kristel Anahy,1991-08-14); 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 '09510 586,f",Kristel Anahy",1991-0814). Clave_materia varchar(20) YES NULL co
Droits d'auteur :
Attribution Non-Commercial (BY-NC)
Formats disponibles
Téléchargez comme TXT, PDF, TXT ou lisez en ligne sur Scribd
Mysql> insert into alumno(09510586,f,Kristel Anahy,1991-08-14); 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 '09510 586,f",Kristel Anahy",1991-0814). Clave_materia varchar(20) YES NULL co
Droits d'auteur :
Attribution Non-Commercial (BY-NC)
Formats disponibles
Téléchargez comme TXT, PDF, TXT ou lisez en ligne sur Scribd
+----------------+-------------+------+-----+---------+-------+ 2 rows in set (0.02 sec) mysql> describe impartido; +---------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------------+-------------+------+-----+---------+-------+ | clave_materia | varchar(20) | YES | | NULL | | | codig_maestro | varchar(20) | YES | | NULL | | +---------------+-------------+------+-----+---------+-------+ 2 rows in set (0.00 sec) mysql> clear mysql> insert into alumno(09510586,f,Kristel Anahy,1991-08-14); 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 '09510 586,f,Kristel Anahy,1991-08-14)' at line 1 mysql> insert into alumno(09510586,"f","Kristel Anahy",1991-08-14); 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 '09510 586,"f","Kristel Anahy",1991-08-14)' at line 1 mysql> insert into alumno VALUES(09510586,f,Kristel Anahy,1991-08-14); 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 'Anahy ,1991-08-14)' at line 1 mysql> insert into alumno(09510586,"f","Kristel Anahy","1991-08-14"); 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 '09510 586,"f","Kristel Anahy","1991-08-14")' at line 1 mysql> insert into alumno VALUES(09510586,"f","Kristel Anahy","1991-08-14"); Query OK, 1 row affected (0.00 sec) mysql> insert into alumno VALUES(09510583,"M","Esau Cabrera","1991-11-05"); Query OK, 1 row affected (0.02 sec) mysql> insert into alumno VALUES(09510645,"M","Juan de Jesus","1991-06-24"); Query OK, 1 row affected (0.00 sec) mysql> insert into alumno VALUES(09510682,"f","Flor de Maria","1991-12-17"); Query OK, 1 row affected (0.00 sec) mysql> insert into alumno VALUES(09510999,"m","Luis Eduardo","1991-04-30"); Query OK, 1 row affected (0.00 sec) mysql> show tables; +-------------------+ | Tables_in_escuela | +-------------------+ | alumno | | carrera | | cursa | | impartido | | maestro | | materia | | tiene | +-------------------+ 7 rows in set (0.01 sec) mysql> describe carrera; +----------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+-------+ | codigo_carrera | varchar(20) | NO | PRI | | | | nombre_carrera | varchar(20) | YES | | NULL | | +----------------+-------------+------+-----+---------+-------+ 2 rows in set (0.01 sec) mysql> insert into carrera VALUES(isc-01,"Ing Sist Comp"); ERROR 1054 (42S22): Unknown column 'isc' in 'field list' mysql> insert into carrera VALUES("isc-01","Ing Sist Comp"); Query OK, 1 row affected (0.00 sec) mysql> insert into carrera VALUES("ic-02","Ing Civil"); Query OK, 1 row affected (0.00 sec) mysql> insert into carrera VALUES("ii-03","Ing Industrial"); Query OK, 1 row affected (0.00 sec) mysql> describe cursa; +----------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+-------+ | codigo_carrera | varchar(20) | YES | | NULL | | | n_control | int(11) | YES | | NULL | | +----------------+-------------+------+-----+---------+-------+ 2 rows in set (0.02 sec) mysql> select * from alumno; +-----------+------+---------------+------------+ | n_control | sexo | nombre | fecha_nac | +-----------+------+---------------+------------+ | 9510586 | f | Kristel Anahy | 1991-08-14 | | 9510583 | M | Esau Cabrera | 1991-11-05 | | 9510645 | M | Juan de Jesus | 1991-06-24 | | 9510682 | f | Flor de Maria | 1991-12-17 | | 9510999 | m | Luis Eduardo | 1991-04-30 | +-----------+------+---------------+------------+ 5 rows in set (0.00 sec) mysql> insert into cursa VALUES("isc-01","9510586"); Query OK, 1 row affected (0.00 sec) mysql> insert into cursa VALUES("ii-03","9510682"); Query OK, 1 row affected (0.00 sec) mysql> insert into cursa VALUES("ic-02","9510999"); Query OK, 1 row affected (0.00 sec) mysql> insert into cursa VALUES("isc-01","9510583"); Query OK, 1 row affected (0.00 sec) mysql> insert into cursa VALUES("ii-03","9510645"); Query OK, 1 row affected (0.00 sec) mysql> select * from cursa; +----------------+-----------+ | codigo_carrera | n_control | +----------------+-----------+ | isc-01 | 9510586 | | ii-03 | 9510682 | | ic-02 | 9510999 | | isc-01 | 9510583 | | ii-03 | 9510645 | +----------------+-----------+ 5 rows in set (0.00 sec) mysql> show tables; +-------------------+ | Tables_in_escuela | +-------------------+ | alumno | | carrera | | cursa | | impartido | | maestro | | materia | | tiene | +-------------------+ 7 rows in set (0.00 sec) mysql> describe impartido; +---------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------------+-------------+------+-----+---------+-------+ | clave_materia | varchar(20) | YES | | NULL | | | codig_maestro | varchar(20) | YES | | NULL | | +---------------+-------------+------+-----+---------+-------+ 2 rows in set (0.02 sec) mysql> describe maestro; +----------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+-------+ | codig_maestro | varchar(20) | NO | PRI | | | | nombre_maestro | varchar(20) | YES | | NULL | | | profesion | varchar(20) | YES | | NULL | | +----------------+-------------+------+-----+---------+-------+ 3 rows in set (0.01 sec) mysql> insert into maestro VALUES("m-01","Ezequiel Cruz","Licenciado"); Query OK, 1 row affected (0.01 sec) mysql> insert into maestro VALUES("m-02","Pancho Lopez","Contador"); Query OK, 1 row affected (0.00 sec) mysql> insert into maestro VALUES("m-03","Pablo Perez","Arquitecto"); Query OK, 1 row affected (0.00 sec) mysql> insert into maestro VALUES("m-04","Tony Stark","Ingeniero"); Query OK, 1 row affected (0.00 sec) mysql> describe materia; +----------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+-------+ | clave_materia | varchar(20) | NO | PRI | | | | nombre_materia | varchar(20) | YES | | NULL | | | creditos | int(11) | YES | | NULL | | +----------------+-------------+------+-----+---------+-------+ 3 rows in set (0.00 sec) mysql> insert into materia VALUES("mat-01","Matematicas","12"); Query OK, 1 row affected (0.01 sec) mysql> insert into materia VALUES("mat-02","Base de Datos","15"); Query OK, 1 row affected (0.00 sec) mysql> insert into materia VALUES("mat-03","Automatas","20"); Query OK, 1 row affected (0.00 sec) mysql> insert into materia VALUES("mat-04","Carretera","20"); Query OK, 1 row affected (0.00 sec) mysql> insert into materia VALUES("mat-05","Higiene y Seguridad","20"); Query OK, 1 row affected (0.00 sec) mysql> show tables; +-------------------+ | Tables_in_escuela | +-------------------+ | alumno | | carrera | | cursa | | impartido | | maestro | | materia | | tiene | +-------------------+ 7 rows in set (0.00 sec) mysql> describe impartido; +---------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------------+-------------+------+-----+---------+-------+ | clave_materia | varchar(20) | YES | | NULL | | | codig_maestro | varchar(20) | YES | | NULL | | +---------------+-------------+------+-----+---------+-------+ 2 rows in set (0.02 sec) mysql> select * from impartido; Empty set (0.00 sec) mysql> insert into impartido VALUES("mat-01","m-01"); Query OK, 1 row affected (0.00 sec) mysql> insert into impartido VALUES("mat-02","m-02"); Query OK, 1 row affected (0.00 sec) mysql> insert into impartido VALUES("mat-03","m-03"); Query OK, 1 row affected (0.00 sec) mysql> insert into impartido VALUES("mat-04","m-04"); Query OK, 1 row affected (0.00 sec) mysql> insert into impartido VALUES("mat-05","m-01"); Query OK, 1 row affected (0.00 sec) mysql> select * from tiene; Empty set (0.00 sec) mysql> describe tiene; +----------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+-------+ | codigo_carrera | varchar(20) | YES | | NULL | | | clave_materia | varchar(20) | YES | | NULL | | +----------------+-------------+------+-----+---------+-------+ 2 rows in set (0.02 sec) mysql> insert into tiene VALUES("isc-01","mat-02"); Query OK, 1 row affected (0.00 sec) mysql> insert into tiene VALUES("isc-01","mat-03"); Query OK, 1 row affected (0.00 sec) mysql> insert into tiene VALUES("ic-02","mat-04"); Query OK, 1 row affected (0.00 sec) mysql> insert into tiene VALUES("ii-03","mat-05"); Query OK, 1 row affected (0.00 sec) mysql> insert into tiene VALUES("ii-03","mat-01"); Query OK, 1 row affected (0.00 sec) mysql> show maestro.nombre_maestro from -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> carrera*s -> -> ; 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 'maest ro.nombre_maestro from carrera*s' at line 1 mysql> show maestro.nombre_maestro from carrera*tiene; 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 'maest ro.nombre_maestro from carrera*tiene' at line 1 mysql> show maestro.nombre_maestro from carrera,tiene; 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 'maest ro.nombre_maestro from carrera,tiene' at line 1 mysql> show maestro.nombre_maestro from carrera * tiene; 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 'maest ro.nombre_maestro from carrera * tiene' at line 1 mysql> + -> +++++++++++++++++++:; 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 '+ +++++++++++++++++++:' at line 1 mysql> show maestro.nombre_maestro from ((((carrera,tiene),materia),impartido),m aestro) where; 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 'maest ro.nombre_maestro from ((((carrera,tiene),materia),impartido),maestro) wher' at line 1 mysql> show maestro.nombre_maestro from ((((carrera,tiene),materia),impartido),m aestro) where -> carrera.nombre_carrera="