markdownSELECT Function

SELECT function is one of the most common uses of SQL, it allows us to fetch data from a database

SELECT * FROM db;

/* SELECT -> Select which rows (* means all)
FROM -> which table we want to fetch data from */

This would fetch us ALL results from a table called "db"

Result:


SELECT specific fields

Last updated