sqlite用union all批量插入出现too many terms in compound 错误
发布时间:2020-12-13 00:09:54 所属栏目:百科 来源:网络整理
导读:《sqlite用union all批量插入出现too many terms in compound 错误》要点: 本文介绍了sqlite用union all批量插入出现too many terms in compound 错误,希望对您有用。如果有疑问,可以联系我们。 使用sqlite的union all 批量插入时,出现:too many terms
《sqlite用union all批量插入出现too many terms in compound 错误》要点: 使用sqlite的union all 批量插入时,出现:too many terms in compound 错误。 INSERT INTO ve_cj_urls(url) SELECT 'http://www.52php.cn/1' UNION ALL SELECT 'http://www.52php.cn/2' ... 这是因为最高不要超过500条. 只要控制一批的数量就可以。 MYSQL则没有这方便限制,但我目前只是测试了一次插入一千多条,没有报错。 所以,在SQLITE上做个限制数量吧。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |