如何搜索重复值:例如,我输入发票编号:144699
所有相同的invoice_number,公司代码和发票编号将在SQL中显示
请帮助我。
此代码仅显示invoice_Number,但是当我添加多个发票时,总是会出错。
这是excel数据库vb.net
select *
from [Data$]
Where (Invoice_Number) in
(select
Invoice_Number
from [Data$]
group by Invoice_Number
having count(*) > 1
)