You are on page 1of 2

Proyecto default hibernate.cfg pojo empleados.cfg empleados.hbmxlml hibernateutil Main.

java

Session session= Query query= -hql es hibernate query language -Criteria Close mandar query hecho con nuestro catalogo sql: selct * from libros hql: from arealibro.arealibro paquete pojo

root@jex-S-A665:/home/jex/Escritorio# mysql -u root -p Enter password: mysql> create database EMPLEADO; Query OK, 1 row affected (0.00 sec) mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | EMPLEADO | | mysql | | performance_schema | | test | +--------------------+ 5 rows in set (0.00 sec) mysql> use EMPLEADO;

Database changed mysql> create table EMPLEADO ( -> nombre varchar (20) not null); Query OK, 0 rows affected (0.18 sec) mysql> show tables; +--------------------+ | Tables_in_EMPLEADO | +--------------------+ | EMPLEADO | +--------------------+ 1 row in set (0.00 sec) mysql> identified EMPLEADO; 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 'identified EMPLEADO' at line 1 mysql> desk EMPLEADO; 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 'desk EMPLEADO' at line 1 mysql> desc EMPLEADO; +--------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------+-------------+------+-----+---------+-------+ | nombre | varchar(20) | NO | | NULL | | +--------+-------------+------+-----+---------+-------+ 1 row in set (0.00 sec) mysql> QUIT

You might also like