S
S
Sergey Kiryanov2019-01-24 11:51:37
MySQL
Sergey Kiryanov, 2019-01-24 11:51:37

How to make a selection from a database with such a structure?

Tell me how to make a SQL query to take order_id = 4 and the value field of shipping_id was equal to 76? It is for shipping_id, because the number 76 can be in other value records
5c497c93d0dd8681965148.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nozzy, 2019-01-24
@nozzy

select * from t
where order_id = 4
and name = 'shipping_id'
and value = '76'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question