Check out example codes for "select mysql". It will help you in understanding the concepts better.

Code Example 1

SELECT select_list
FROM table_name;

Code Example 2

SELECT * FROM table_name;

--or

SELECT column1, column2
FROM table_name;

Code Example 3

$sql = "SELECT id, firstname, lastname FROM MyGuests";
$result = $conn->query($sql);

if ($result->num_rows > 0) {
    // output data of each row
    while($row = $result->fetch_assoc()) {
        echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. " " . $row["lastname"]. "<br>";
    }
} else {
    echo "0 results";
}
$conn->close();

Code Example 4

$sqlSelect = "SELECT * FROM manifest";
$result = mysql_query($conn, $sqlSelect);
            
if (mysql_num_rows($result) > 0) {
<table id='userTable'>
    <thead>

Code Example 5

SELECT column_name(s) FROM table_name

Learn ReactJs, React Native from akashmittal.com