set @rownum := 0;

insert into indextest 
select s.*
from (
		select @rownum = @rownum + 1 rownum,  customer_id,  inventory_id, rental_date, last_update, 0, staff_id 
		from sakila.rental ) s , (select 1 from performance_schema.global_variables limit 10 ) v, (select @rownum := 0) temp 
limit 2000000        ;
SMALL

'MySQL-MariaDB' 카테고리의 다른 글

Hash Join  (0) 2020.08.29
MaraDB 지식베이스 - table_open_cache 최적화  (0) 2020.08.23
MySQL 진단시 고려할 부분  (0) 2020.08.22
MySQL - Limit 에 대하여...  (0) 2020.06.26
innoDB Buffer Usage가 100%를 유지하는 현상  (0) 2020.06.26

+ Recent posts