SQLite: Create Directory Structure Table from A List Of Paths
问题 I want to create a directory structure table as described in this question where: Directory = "Primary Key" id field, typically an integer Directory_Parent = "Foreign Key" id field, which points to the id of another Directory in the same table Value = string containing the directory/folder name Given Tree/Fruit/Apples/ Directory | Directory_Parent | Value 0 null Root 1 0 Tree 2 1 Fruit 3 2 Apples A Root folder has been created at Primary Key 0 with a null parent. My paths are being imported