| |

VerySource

 Forgot password?
 Register
Search
View: 842|Reply: 3

Please master help! !! !! Problems removing tree structure

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-16 13:30:02
| Show all posts |Read mode
Now there is a table that stores the file directory ID, which indicates the parent-child relationship. Now give a node and ask to delete all the nodes under it, master help! !! !!
E.g
                             1
                         twenty three
                        4 5 | 6
                       7 8 9 10
This structure, 1 under 2, 3
2 is 4, 5
4 is 7, 8
.. .
Requires input 2
Delete 4, 5, 7, 8 under 2?
There are best examples, thank you!
Reply

Use magic Report

0

Threads

8

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Invalid IP Address

Post time: 2020-4-30 14:45:02
| Show all posts
What is the structure of the table? What is the data in the table?

Give an example
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-6-11 10:00:01
| Show all posts
Table structure p s
       1 2
       1 3
       twenty four
       2 5
       4 7
       4 8
In this way, is it okay to correspond to the above?sanshuimei
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-18 10:00:01
| Show all posts
delete from test where rowid in (select rowid from test
start with id=1
connect by id = prior nextid)
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list