摘要: 昨天领导帮我优化了一下sql语句。 test表结构 a b 1 2 3 4 5 6 7 8 1 6 9 10 我之前写的sql语句,例: select a,b from test where (a = 1 and b = 2) or (a = 3 and b = 4) or (a = 5 and b 阅读全文
posted @ 2020-08-19 09:30 cchilei 阅读(1078) 评论(1) 推荐(1) 编辑
摘要: 最近使用到了SQLite数据库,根据需求逻辑,我使用for循环中拼接or的方式拼接sql,出现下面的错误 sqlite expression tree is too large (maximum depth 1000) 本以为是sql语句太长了。我就试图将sql语句减少一点,发现还是不行。 就在网上 阅读全文
posted @ 2020-08-19 09:01 cchilei 阅读(784) 评论(0) 推荐(0) 编辑