数据构建
hhcode
这个作者很懒,什么都没留下…
展开
-
mysql存储过程(批量增加表字段,针对分表)
DROP PROCEDURE IF EXISTS `accounting`.`BATCH_AC_INV_ITEM_ADD_COLUMN`;CREATE DEFINER=`root`@`%` PROCEDURE `BATCH_AC_INV_ITEM_ADD_COLUMN`()BEGIN declare i int ; declare j int; set i = 7; while i < 13 do set j = 0; repeat if i < 10原创 2022-02-14 09:58:51 · 518 阅读 · 0 评论 -
遍历树形结构
public static void traversing(List<Node> root) { Stack<Node> stack = new Stack<>(); root.forEach(stack::push); while (!stack.isEmpty()) { Node o = stack.pop(); List<Node> childrens = o.getChildrens();原创 2022-01-13 21:00:34 · 198 阅读 · 0 评论