{"author_url":"https://blog.hatena.ne.jp/HTN20190109/","published":"2022-02-01 21:37:05","version":"1.0","title":"\u52d5\u7684SQL\u306e\u5b9f\u884c\u8a08\u753b\u78ba\u8a8d","url":"https://htn20190109.hatenablog.com/entry/2022/02/01/213705","image_url":null,"blog_url":"https://htn20190109.hatenablog.com/","provider_url":"https://hatena.blog","blog_title":"HTN20190109\u306e\u65e5\u8a18","height":"190","type":"rich","categories":["DB"],"width":"100%","author_name":"HTN20190109","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhtn20190109.hatenablog.com%2Fentry%2F2022%2F02%2F01%2F213705\" title=\"\u52d5\u7684SQL\u306e\u5b9f\u884c\u8a08\u753b\u78ba\u8a8d - HTN20190109\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"MySQL (8.0.26) drop table tab1; create table tab1( col1 int primary key, col2 int, col3 int, col4 int) partition by range (col1) ( partition p1 values less than (0) , partition p2 values less than (maxvalue) ); set @sSQL := concat(\" explain \",\" select * from tab1 t1,tab1 t2 \");prepare stmt from @sSQ\u2026"}