Check out example codes for "SELECT 1 from table". It will help you in understanding the concepts better.

Code Example 1

select * from StudentTable;

-- output : 
+------+-------+
| id   | name  |
+------+-------+
|    1 | John  |
|    2 | Carol |
|    3 | Smith |
|    4 | Bob   |
+------+-------+
4 rows in set (0.00 sec)

-- EXAMPLE OF SELECT 1 
select 1 from StudentTable;

-- output :
+---+
| 1 |
+---+
| 1 |
| 1 |
| 1 |
| 1 |
+---+
4 rows in set (0.00 sec)

-- The above returns 1 four times for 4 records, 
-- and if we had 5 records then the above query 
-- would have returned 1 five times.

Code Example 2

select * from StudentTable;

-- output : 
+------+-------+
| id   | name  |
+------+-------+
|    1 | John  |
|    2 | Carol |
|    3 | Smith |
|    4 | Bob   |
+------+-------+
4 rows in set (0.00 sec)

-- EXAMPLE OF SELECT 1 
select 1 from StudentTable;

-- output :
+---+
| 1 |
+---+
| 1 |
| 1 |
| 1 |
| 1 |
+---+
4 rows in set (0.00 sec)

-- The above returns 1 four times for 4 records, 
-- and if we had 5 records then the above query 
-- would have returned 1 five times.

Learn ReactJs, React Native from akashmittal.com