用 SQL 汇总某种 background-color 的块时,当遇到列表类型的块时,每一级列表都要重复出现 2 次,如块文字在 3 级列表,同样的内容就会重复出现 6 次,见下图:
目前的代码如下,请大佬帮助修正一下,希望列表块的内容只出现一次(即文字内容的段落块即可,就是上图 ① 那种)。
select * from blocks
where type != 'd'
and markdown like '%background-color: var(--b3-card-info-background); color: var(--b3-card-info-color)%'
and box='20221003213455-bga3vr3'
order by created desc
-- error,warning,info,success;