u
This commit is contained in:
@@ -14,3 +14,9 @@ SELECT id, parent_id, sort
|
||||
FROM tree
|
||||
ORDER BY sort, id
|
||||
`;
|
||||
|
||||
export const CREATE = `
|
||||
INSERT INTO category (parent_id, sort)
|
||||
OUTPUT INSERTED.id
|
||||
VALUES (@parentId, @sort)
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user