Duplicate
Details
Assignee
UnassignedUnassignedReporter
YuanyueZhengYuanyueZhengLabels
Upstream Bug URL
Needs QA
YesFix versions
Priority
High
Details
Details
Assignee
Unassigned
UnassignedReporter
YuanyueZheng
YuanyueZhengLabels
Upstream Bug URL
Needs QA
Yes
Fix versions
Priority
Smart Checklist
Smart Checklist
Smart Checklist
Created April 25, 2023 at 2:16 AM
Updated December 5, 2024 at 1:16 PM
Resolved December 5, 2024 at 1:16 PM
sql:
CREATE TABLE `storage_acid_dml_table_000_2` (
`C_ID` int NOT NULL,
`C_D_ID` int NOT NULL,
`C_W_ID` bigint NOT NULL,
`C_DOUBLE` double NOT NULL,
`C_DECIMAL` decimal(10,0) NOT NULL,
`C_FIRST` varchar(64) NOT NULL,
`C_MIDDLE` char(2) DEFAULT NULL,
`C_LAST` varchar(64) NOT NULL,
`C_STREET_1` varchar(20) NOT NULL,
`C_STREET_2` varchar(20) DEFAULT NULL,
`C_CITY` varchar(64) NOT NULL,
`C_STATE` char(2) NOT NULL,
`C_ZIP` char(9) NOT NULL,
`C_PHONE` char(16) NOT NULL,
`C_SINCE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`C_CREDIT` char(2) NOT NULL,
`C_CREDIT_LIM` decimal(12,2) DEFAULT NULL,
`C_DISCOUNT` decimal(4,4) DEFAULT NULL,
`C_BALANCE` decimal(12,2) DEFAULT NULL,
`C_YTD_PAYMENT` double NOT NULL,
`C_PAYMENT_CNT` float NOT NULL,
`C_DELIVERY_CNT` tinyint(1) NOT NULL,
`C_END` date NOT NULL,
`C_VCHAR` varchar(9000) DEFAULT NULL,
`C_DATA` text,
`C_TEXT` blob,
`C_TINYTEXT` tinytext,
`C_MEDIUMBLOB` mediumblob,
`C_LONGBLOB` longblob,
PRIMARY KEY (`C_ID`,`C_D_ID`,`C_W_ID`),
UNIQUE KEY `storage_acid_dml_index_000_2_1` (`C_ID`,`C_D_ID`),
KEY `storage_acid_dml_index_000_2_2` (`C_ID`),
KEY `storage_acid_dml_index_000_2_3` (`C_CITY`),
KEY `storage_acid_dml_index_000_2_4` (`C_FIRST`,`C_STATE`),
KEY `storage_acid_dml_index_000_2_5` (`C_ID`,`C_D_ID`,`C_MIDDLE`),
KEY `storage_acid_dml_index_000_2_6` (`C_ID`,`C_D_ID`,`C_MIDDLE`,`C_STREET_1`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
load data infile 'data.sql' into table storage_acid_dml_table_000_2;
drop table if exists storage_acid_dml_table_203;
CREATE TABLE `storage_acid_dml_table_203` (
`C_ID` int DEFAULT NULL,
`C_D_ID` int NOT NULL,
`C_W_ID` bigint NOT NULL,
`C_DOUBLE` double NOT NULL,
`C_DECIMAL` decimal(10,0) NOT NULL,
`C_FIRST` varchar(64) NOT NULL,
`C_MIDDLE` char(2) DEFAULT NULL,
`C_LAST` varchar(64) NOT NULL,
`C_STREET_1` varchar(20) NOT NULL,
`C_STREET_2` varchar(20) DEFAULT NULL,
`C_CITY` varchar(64) NOT NULL,
`C_STATE` char(2) NOT NULL,
`C_ZIP` char(9) NOT NULL,
`C_PHONE` char(16) NOT NULL,
`C_SINCE` timestamp NULL DEFAULT NULL,
`C_CREDIT` char(2) NOT NULL,
`C_CREDIT_LIM` decimal(12,2) DEFAULT NULL,
`C_DISCOUNT` decimal(4,4) DEFAULT NULL,
`C_BALANCE` decimal(12,2) DEFAULT NULL,
`C_YTD_PAYMENT` double NOT NULL,
`C_PAYMENT_CNT` float NOT NULL,
`C_DELIVERY_CNT` tinyint(1) NOT NULL,
`C_END` date NOT NULL,
`C_VCHAR` varchar(9000) DEFAULT NULL,
`C_DATA` text,
`C_TEXT` blob,
`C_TINYTEXT` tinytext,
`C_MEDIUMBLOB` mediumblob,
`C_LONGBLOB` longblob
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
insert into storage_acid_dml_table_203 select * from storage_acid_dml_table_000_2;
delete from storage_acid_dml_table_203 where C_ID%2=0;
if sleep 1s, data will not be lost.
select sleep(1);
select count from storage_acid_dml_table_203;
alter table storage_acid_dml_table_203 engine=InnoDB;
select count from storage_acid_dml_table_203;