You are on page 1of 3

CREATE TABLE libros (id integer, name TEXT, rating integer);

INSERT INTO libros values(1, "máquina del tiempo", 1);

INSERT INTO libros values(2, "doña bárbara", 2);

INSERT INTO libros values(3, "un lugar", 3);

SELECT name,rating FROM libros WHERE id=1;

https://erd.dbdesigner.net/designer/schema/1693486037-untitled

Flask

https://www.geeksforgeeks.org/making-a-flask-app-using-a-postgresql-database/

pip install flask


flask --app hello run
Type "cmd" in the search bar and hit Enter to open the command line. What is this? Type “ pip
install psycopg2-binary ” (without quotes) in the command line and hit Enter again. This installs
psycopg2-binary for your default Python installation.

Cómo se instala la librería de MySQL.connector

Abrir terminal, ejecutar:

python -m pip install mysql-connector-python

You might also like