如果有人帮助创建递归查询以进行无限树视图,我将不胜感激。示例数据和输出已在下面显示,以供参考。
详细信息字段的内容将是没有' GroupCode'。
的根元素。TABLE DATA (Example table name is 'Area')
=========================================
>GroupCode Code Details (Continent/Country/Province or Division/City/Area/Street)
>========= ==== =================================================================
> 1 Asia
> 2 Europe
> 3 Africa
> 4 North America
> 5 South America
> 6 Australia
> 7 Antarctica
>1 8 Bangladesh
>1 9 India
>1 10 Pakistan
>8 11 Dhaka
>8 12 Chittagong
>12 13 Agrabad
>12 14 New-Market
>12 15 Halishahar
>9 16 West Bengal
>16 17 Kolkata (Calcutta)
>17 18 XYZ Area
>13 19 Road No. 111
>13 20 Road No. 222
>
>Tree View
>========================================================
>-> (1) Asia
> -> (8) Bangladesh
> -> (12) Chittagong
> -> (13) Agrabad
> -> (19) Road No. 111
> -> (20) Road No. 222
> -> (14) New-Market
> -> (15) Halishahar
>
> -> (9) India
> -> (16) West Bengal
> -> (17) Kolkata
> -> (18) XYZ Area
>
谢谢, Nowshad(Cell#+ 880-1713-442068)