Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
+--------------------+
| Database |
+--------------------+
| information_schema |
| minimarket |
| mysql |
| performance_schema |
| test |
| veterinaria |
+--------------------+
6 rows in set (0.00 sec)
modificar bd
mysql> update empleado set cargo='secretaria' where id_empleado=4;
Query OK, 1 row affected (0.07 sec)
Rows matched: 1 Changed: 1 Warnings: 0
...................................................................................
..........................
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 53
Server version: 5.5.24-log MySQL Community Server (GPL)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> values('2','Rosa','Gonzalo','1990-05-12','f','Veterinaria','2500');
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
'values('2','Rosa','Gonzalo','1990-05-12','f','Veterinaria','2500')' at line 1
mysql> values('2','Rosa','Gonzales','1990-05-12','f','Veterinaria','2500');
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
'values('2','Rosa','Gonzales','1990-05-12','f','Veterinaria','2500')' at line 1
mysql> insert into empleado
-> values('2','Rosa','Gonzalo','1990-05-12','f','Veterinaria','2500');
Query OK, 1 row affected (0.04 sec)
mysql>