u
This commit is contained in:
@@ -20,3 +20,14 @@ INSERT INTO category (parent_id, sort)
|
||||
OUTPUT INSERTED.id
|
||||
VALUES (@parentId, @sort)
|
||||
`;
|
||||
|
||||
export const UPDATE_PARENT_ID = `
|
||||
UPDATE category
|
||||
SET parent_id = @parentId
|
||||
WHERE id = @id
|
||||
`;
|
||||
|
||||
export const DELETE = `
|
||||
DELETE FROM category
|
||||
WHERE id = @id
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user