构造测试数据(笛卡尔积,6 次100 万)

create table t1(id int, val varchar(80));

set @i := 0;
create table tmp as select (@i := @i + 1) as id from information_schema.tables limit 10;

set @i := 0;
insert into t1 select @i := @i + 1, substr(concat(sha1(rand()), sha1(rand())), 1, floor(rand() * 80)) from tmp a, tmp b, tmp c, tmp d, tmp e, tmp f;

相关文章:

  • 2021-09-24
  • 2021-04-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2022-12-23
猜你喜欢
  • 2021-11-27
  • 2021-12-29
  • 2022-01-06
  • 2022-01-04
  • 2022-12-23
  • 2022-03-09
  • 2022-01-26
相关资源
相似解决方案