![](/img/trans.png)
[英]How to select records with distinct combination of 2 columns in MySQL
[英]Select Distinct records from 3 different columns
您可以嘗試使用 union
select userid, coin as asset from tablename where coin is not null
union
select userid, wallet from tablename where wallet is not null
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.