Giả sử rằng t_node là nút node Phiên bản bảng, trong khi t_node_node - node_node Ví dụ bảng, hãy xem câu lệnh bên dưới.
upd = (t_node.update()
.values(
parent_id = t_node_node.c.parent_id,
label = t_node_node.c.label,
)
.where(t_node_node.c.child_id == t_node.c.node_id)
)
Đọc thêm về Chèn, Cập nhật và Xóa tài liệu để biết thêm thông tin.