摘要: ```sql select coalesce(company_id,0) from stock_quant; ``` 阅读全文
posted @ 2020-04-17 19:20 那时一个人 阅读(4319) 评论(0) 推荐(0)
摘要: ```xml event.question.report.pivot event.question.report ``` 阅读全文
posted @ 2020-04-17 11:33 那时一个人 阅读(374) 评论(0) 推荐(0)
摘要: https://wiki.postgresql.org/wiki/Getting_list_of_all_children_from_adjacency_tree 首先表格得有id,parent_id 字段, 创建函数,函数返回所有子记录的集合: 查询调用 需要优化的:函数实现动态表名的查询 阅读全文
posted @ 2020-04-17 10:46 那时一个人 阅读(543) 评论(0) 推荐(0)