Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一张这样的桌子:
id count 23432 0 34242 1 12345 5 32235 20 45645 3
如何通过列(id)值32235选择 ROW 列(计数)值20?
我认为这应该很简单。
SELECT `count` FROM tablename WHERE id = 32235
用这个:
SELECT * FROM table_name WHERE count = 20 && value=32235;