Z
Z
Zorgios2019-07-16 13:21:43
MySQL
Zorgios, 2019-07-16 13:21:43

How to get the value of a column of a certain row from a table?

What is the correct way to make a query to the players table
If you want to retrieve the hp value depending on the id value
Example of a table with data
5d2da51ac5953364114137.png
How, for example, to retrieve the hp value if id = 12345 ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
irishmann, 2019-07-16
@Zorgios

SELECT
    hp
FROM
    players
WHERE
    id = 12345

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question