我有多组查询 我想要显示唯一的第一个和旁边的加号,所以当用户点击加号时,它会打开较低级别的组,并且它有另一个加号
+USA
+Australia
点击美国旁边的标志时,应显示此
-USA
+Texas
+California
+Australia
点击德克萨斯旁边的标志时,它应显示此
-USA
-Texas
+Dallas
+Austin
+Houston
+California
+Australia
点击达拉斯时显示
-USA
-Texas
-Dallas
Tom
+Austin
+Houston
+California
+Australia
我已完成报告,方法是隐藏所有行并按上面的行
切换但由于某种原因,当我为CName切换C3时,它可以正常工作,现在当我隐藏C3并由C2切换由于某种原因CName再次显示!!
我不知道为什么,任何人都知道为什么?
由于
这是我的查询
select 'USA'as C1,'Texas' as C2,'Dallas'as C3,'Tom' as CName UNION
select 'USA'as C1,'Texas' as C2,'Austin'as C3,'Adam' as CName UNION
select 'USA'as C1,'Texas' as C2,'Huoston'as C3,'Ken' as CName UNION
select 'USA'as C1,'California' as C2,'Los Angeles'as C3,'Dave' as CName UNION
select 'USA'as C1,'California' as C2,'San Fransisco'as C3,'Sam' as CName UNION
select 'USA'as C1,'California' as C2,'Hollywood'as C3,'Sean' as CName UNION
select 'Australia'as C1,'NSW' as C2,'Sydney'as C3,'Richard' as CName UNION
select 'Australia'as C1,'NSW' as C2,'Dubbo'as C3,'Arnold' as CName UNION
select 'Australia'as C1,'VIC' as C2,'Melbourne'as C3,'Mike' as CName UNION
select 'Australia'as C1,'VIC' as C2,'Doncaster'as C3,'Matt' as CName UNION
select 'Australia'as C1,'VIC' as C2,'Craigieburn'as C3,'Kate' as CName UNION
select 'Australia'as C1,'QLD' as C2,'Brisbane'as C3,'Edward