0
當我嘗試插入MariaDB 10.0.19上的Mroonga表時,我一直在獲取重複的主鍵錯誤。有誰知道可能是什麼原因?Mariadb上的Mroonga主鍵插入錯誤
SQL:
insert into tbl_mroonga select pk_id, keyword from tbl_inno;
創建表:
create table tbl_mroonga (
'PK_ID' int(11) not null default 0,
'Keyword' varchar(191) null default null,
primary key (`pk_id`),
fulltext index ('keyword')) Engine=MROONGA;
create table tbl_inno (
'PK_ID' int(11) not null default 0,
'Keyword' varchar(191) null default null,
primary key (`pk_id`),
fulltext index ('keyword')) Engine=INNODB;
我插入來自tbl_inno約350萬行tbl_mroonga,它在大約400K行失敗。我用「select distinct」和「group by pk_id」嘗試過它,但仍然失敗。
任何幫助將不勝感激!
謝謝。
此鏈接可以幫助:https://mariadb.com/kb/en/mariadb/auto_increment/ – Michas
'主要Key'是不同的/獨特,'選擇distinct'&'通過pk_id'組不會有任何效果。 1 - 嘗試使用'Engine = MROONGA'創建一個新表格。 2 - 或者看看'ON DUPLICATE KEY UPDATE tbl_mroonga.keyword = tbl_inno.keyword'詞組是否有幫助。 PS:我沒有親自與MROONGA交流。 – SparKot
'mysqld.err'中是否有相關的內容? –