Professional Documents
Culture Documents
2715]
(c) Microsoft Corporation. Todos los derechos reservados.
C:\Users\monte>cd ..
C:\Users>cd ...
C:\Users>cd xampp
El sistema no puede encontrar la ruta especificada.
C:\Users>cd ..
C:\>cd ...
C:\>cd xampp
C:\xampp>cd mysql
C:\xampp\mysql>cd bin
C:\xampp\mysql\bin>mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.4.32-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [VENTAS]> alter table CLIENTE add constraint Ulisses primary key (clave_PK)
-> ;
ERROR 1072 (42000): Key column 'clave_PK' doesn't exist in table
MariaDB [VENTAS]> alter table CLIENTE add ulisses primary key (clave);
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
'primary key (clave)' at line 1
MariaDB [VENTAS]> alter table CLIENTE add constraint ulisses primary key(clave);
Query OK, 0 rows affected, 1 warning (0.588 sec)
Records: 0 Duplicates: 0 Warnings: 1
MariaDB [VENTAS]>