假設類A向B繼承和B是由C. class C():
def my_method(self):
pass
class B(C):
def my_method(self):
pass
class A(B):
def my_method(self):
# Call my_method from B
super(A, s
我想獲取所有祖先,所選類別和直接子項,並計算每個類別及其所有子項中的所有項目。 這是我做過什麼: DECLARE @CategoryId INT = 8
;WITH Re AS
(
SELECT CategoryId, Name, ParentId, CategoryId RootId, 0 Depth, Sort = CAST(Name AS VARCHAR(MAX))
FROM