我有这张 table 。
我想要的是只得到1和2
我已经尝试过:
SELECT table_no
from customer_order
where status='true'
最佳答案
您可以使用distinct
关键字:
SELECT DISTINCT table_no
from customer_order
where status='true'
关于MySQL SELECT 语法不重复其他值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51210696/