简体   繁体   中英

Select Row by Column1 Value to Select Column2 of same Row

I have a table like this:

id       count
23432    0
34242    1
12345    5
32235    20
45645    3

How can i select a ROW column(count) value 20 by the column(id) value 32235 ?

I think this should be pretty straight-forward.

SELECT `count`
FROM tablename
WHERE id = 32235

用这个:

SELECT * FROM table_name WHERE count = 20 && value=32235;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM