一,合并数据项
select A.hblfile,B.hbltxlfile from (select hblfile from file where number = '2012050002' group by hblfile having count(hblfile) =1) A,(
select hbltxlfile from file where number = '2012050002' group by hbltxlfile having count(hbltxlfile) =1) B
本文介绍了一种使用SQL从同一编号的数据文件中选择并合并不同字段的方法。通过两个子查询分别获取独立的hblfile和hbltxlfile,并确保每个文件唯一出现。此技巧适用于需要精确合并数据的应用场景。
3550

被折叠的 条评论
为什么被折叠?



