Check out example codes for "print all records of table in mysql". It will help you in understanding the concepts better.

Code Example 1

SELECT * FROM TABLE_NAME;
OR
SELECT column_name_1, column_name_2 FROM TABLE_NAME;

Learn ReactJs, React Native from akashmittal.com