Where子句选择多行唯一值
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Where子句选择多行唯一值相关的知识,希望对你有一定的参考价值。
Where clause to select multiple rows of unique values
--- YOU WANT TO SELECT MULTIPLE ROWS AT ONCE BASED ON UNIQUE VALUES --- some_id IS THE COLUMN NAME THAT MAY HAVE AN ID THAT YOU WANT TO BASE THE SELECTION ON --- IN PLAIN ENGLISH YOU ARE SAYING... --- SELECT ALL THE ID'S (IN PARENTHESES) FROM THE COLUMN NAMED some_id SELECT * FROM `your_table_name` WHERE some_id IN(1165,1166,1180,1181)
以上是关于Where子句选择多行唯一值的主要内容,如果未能解决你的问题,请参考以下文章
如何使用 where/have 子句选择唯一行并与另一个表进行比较