HI GUYS! i have a duplicated row with same primary keys in a ARIA table
what could i do!? REPAIR don't find it, CHECK don't find it but in SELECT it's showed twice!
CREATE TABLE `dig_lotes` (
`lote_unidade` INT(11) NOT NULL DEFAULT '0',
`lote_data` DATE NOT NULL DEFAULT '0000-00-00',
`lote_numero` INT(11) NOT NULL DEFAULT '0',
`lote_tipo` CHAR(1) NOT NULL DEFAULT 'p',
`total_ocorrencias` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`total_documentos` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`total_baixas` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`total_bancos` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`moeda_total` CHAR(3) NOT NULL DEFAULT 'R$',
`valor_total` DECIMAL(17,5) UNSIGNED NOT NULL DEFAULT '0.00000',
`valor_baixas` DECIMAL(17,5) UNSIGNED NOT NULL DEFAULT '0.00000',
`valor_bancos` DECIMAL(17,5) UNSIGNED NOT NULL DEFAULT '0.00000',
`digitador_tipo` ENUM('f','j') NOT NULL DEFAULT 'f',
`digitador_id` INT(11) NOT NULL DEFAULT '0',
`sit_spa` ENUM('d','s','p','a','mov') NOT NULL DEFAULT 'd',
`data_spa_d` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`data_spa_s` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`data_spa_p` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`data_spa_a` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`data_spa_mov` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`bordero` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
`cessionario_tipo` ENUM('f','j') NOT NULL DEFAULT 'f',
`cessionario_id` BIGINT(20) NOT NULL DEFAULT '0',
`importado` VARCHAR(25) NOT NULL,
`numero_remessa_boleto` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
`arquivo_importacao_id` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`observacao` TEXT NOT NULL,
`lote_data_origem` DATE NOT NULL DEFAULT '0000-00-00',
`lote_numero_origem` INT(11) NOT NULL DEFAULT '0',
`cobrador_padrao_tipo` ENUM('f','j') NOT NULL DEFAULT 'f',
`cobrador_padrao_id` INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`lote_unidade`, `lote_data`, `lote_numero`),
INDEX `lote_origem` (`lote_unidade`, `lote_data_origem`, `lote_numero_origem`)
)
ENGINE=Aria;
what got wrong? well i made a INSERT IGNORE INTO with another table:
insert ignore into dig_lotes
(lote_unidade,lote_tipo,lote_data,lote_numero,importado,sit_spa)
select lote_unidade,lote_tipo,lote_data,lote_numero,importado,'s'
from dig_contas
where (lote_unidade,lote_tipo,lote_data,lote_numero) not in (
select lote_unidade,lote_tipo,lote_data,lote_numero
from dig_lotes
);
it showed some warnings but no error, and after this it showed two values with same primary key!
how could i export database to check?
{"report":{"fcp":1005.9000000953674,"ttfb":348.90000009536743,"pageVisibility":"visible","entityId":23907,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"8a9da040-e88e-4f88-98fd-ccc2422db241","navigationType":0,"readyForUser":1077.5,"redirectCount":0,"resourceLoadedEnd":537.4000000953674,"resourceLoadedStart":358.5,"resourceTiming":[{"duration":12.300000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":358.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":358.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":370.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":12.300000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":358.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":358.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":371.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":169.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":359,"connectEnd":359,"connectStart":359,"domainLookupEnd":359,"domainLookupStart":359,"fetchStart":359,"redirectEnd":0,"redirectStart":0,"requestStart":456.2000002861023,"responseEnd":528.9000000953674,"responseStart":489.40000009536743,"secureConnectionStart":359},{"duration":178.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":359.2000002861023,"connectEnd":359.2000002861023,"connectStart":359.2000002861023,"domainLookupEnd":359.2000002861023,"domainLookupStart":359.2000002861023,"fetchStart":359.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":455.5,"responseEnd":537.4000000953674,"responseStart":470.5,"secureConnectionStart":359.2000002861023},{"duration":131.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":359.7000002861023,"connectEnd":359.7000002861023,"connectStart":359.7000002861023,"domainLookupEnd":359.7000002861023,"domainLookupStart":359.7000002861023,"fetchStart":359.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":456.7000002861023,"responseEnd":491.40000009536743,"responseStart":490.80000019073486,"secureConnectionStart":359.7000002861023},{"duration":146.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":361.1000003814697,"connectEnd":361.1000003814697,"connectStart":361.1000003814697,"domainLookupEnd":361.1000003814697,"domainLookupStart":361.1000003814697,"fetchStart":361.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":459.30000019073486,"responseEnd":507.80000019073486,"responseStart":507.2000002861023,"secureConnectionStart":361.1000003814697},{"duration":106.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":361.6000003814697,"connectEnd":361.6000003814697,"connectStart":361.6000003814697,"domainLookupEnd":361.6000003814697,"domainLookupStart":361.6000003814697,"fetchStart":361.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":455.1000003814697,"responseEnd":467.90000009536743,"responseStart":467.2000002861023,"secureConnectionStart":361.6000003814697},{"duration":13.900000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":361.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":361.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":375.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":139.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":361.90000009536743,"connectEnd":361.90000009536743,"connectStart":361.90000009536743,"domainLookupEnd":361.90000009536743,"domainLookupStart":361.90000009536743,"fetchStart":361.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":458.6000003814697,"responseEnd":501.30000019073486,"responseStart":500.7000002861023,"secureConnectionStart":361.90000009536743},{"duration":14.899999618530273,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":362.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":362.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":377,"responseStart":0,"secureConnectionStart":0},{"duration":146.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":362.30000019073486,"connectEnd":362.30000019073486,"connectStart":362.30000019073486,"domainLookupEnd":362.30000019073486,"domainLookupStart":362.30000019073486,"fetchStart":362.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":459.7000002861023,"responseEnd":508.40000009536743,"responseStart":507.90000009536743,"secureConnectionStart":362.30000019073486},{"duration":145.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":365.90000009536743,"connectEnd":365.90000009536743,"connectStart":365.90000009536743,"domainLookupEnd":365.90000009536743,"domainLookupStart":365.90000009536743,"fetchStart":365.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":458,"responseEnd":511.1000003814697,"responseStart":510.5,"secureConnectionStart":365.90000009536743},{"duration":145.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":365.90000009536743,"connectEnd":365.90000009536743,"connectStart":365.90000009536743,"domainLookupEnd":365.90000009536743,"domainLookupStart":365.90000009536743,"fetchStart":365.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":459.6000003814697,"responseEnd":511.80000019073486,"responseStart":511.30000019073486,"secureConnectionStart":365.90000009536743},{"duration":184.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":748,"connectEnd":895.2000002861023,"connectStart":895.2000002861023,"domainLookupEnd":895.2000002861023,"domainLookupStart":895.2000002861023,"fetchStart":748,"redirectEnd":0,"redirectStart":0,"requestStart":895.4000000953674,"responseEnd":932.3000001907349,"responseStart":931.7000002861023,"secureConnectionStart":895.2000002861023},{"duration":165.09999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":977.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":977.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1142.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":84.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":994.3000001907349,"connectEnd":994.3000001907349,"connectStart":994.3000001907349,"domainLookupEnd":994.3000001907349,"domainLookupStart":994.3000001907349,"fetchStart":994.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1040.7000002861023,"responseEnd":1078.7000002861023,"responseStart":1078,"secureConnectionStart":994.3000001907349}],"fetchStart":0,"domainLookupStart":78,"domainLookupEnd":87,"connectStart":87,"connectEnd":115,"secureConnectionStart":97,"requestStart":115,"responseStart":349,"responseEnd":365,"domLoading":353,"domInteractive":1179,"domContentLoadedEventStart":1180,"domContentLoadedEventEnd":1222,"domComplete":1567,"loadEventStart":1567,"loadEventEnd":1568,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1148.5},{"name":"bigPipe.sidebar-id.end","time":1149.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1149.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1155.5},{"name":"activityTabFullyLoaded","time":1230.2000002861023}],"measures":[],"correlationId":"9c671f5f2ca93b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":170,"dbReadsTimeInMs":9,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}