Ich habe die Tabelle namens Benutzer. Es gibt Spalten: ID, Code, ParentID. ParentID ist der Zeiger auf die ID-Spalte und kann null sein. Zum Beispiel:Code als ParentID wählen, wenn nicht null
ID Code ParentId
1 Poland null
2 Germany 1
würde Ich mag das folgende Ergebnis erhalten. ParentId als Code, wenn nicht null und Id als Code.
Beispiel (accordong zu obigem Beispiel):
ParentId Id
null, poland
Germany, Poland
vielen dank – tylkonachwile
Sie sind herzlich willkommen @tylonachwile – scsimon