代码拉取完成,页面将自动刷新
同步操作将从 帝八哥/JavaBooks 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
分别对应:
id select_type table type possible_keys key key_len ref rows Extra
SELECT
*
FROM
sb_user su
WHERE
user_name = 'mai';
1 "SIMPLE" "su" "const" "user_name" "user_name" "152" "const" 1 ""
1 "SIMPLE" "su" "ref" "user_name" "user_name" "152" "const" 1 "Using index condition"
1 "SIMPLE" "su" "ALL" NULL NULL NULL NULL 11 "Using where"
SELECT
sc.uuid,
sc.begin_date,
sc.begin_time,
sc.bus_id,
sc.bus_status,
sc.seat_status
FROM
sb_count sc
WHERE
sc.begin_date = '2020-06-03'
AND sc.begin_time >= '14:00'
AND sc.bus_status = '1';
1 "SIMPLE" "sc" "ALL" NULL NULL NULL NULL 581 "Using where"
53ms
1 "SIMPLE" "sc" "ref" "begin_date" "begin_date" "402" "const" 17 "Using index condition; Using where"
53ms // 数据太少,体现不出来...
1 "SIMPLE" "sc" "ref" "begin_date,begin_time" "begin_date" "402" "const" 17 "Using index condition; Using where"
53ms
1 "SIMPLE" "sc" "index_merge" "begin_date,begin_time,bus_status" "begin_date,bus_status" "402,152" NULL 7 "Using intersect(begin_date,bus_status); Using where"
53ms
SELECT
so.uuid,
so.bus_status,
so.seats_ids,
so.order_user,
so.order_status,
so.order_time,
sc.bus_id,
CONCAT(sc.begin_date, ' ', sc.begin_time) begin_time
FROM
sb_order so
LEFT JOIN sb_count sc ON so.count_id = sc.uuid
WHERE
so.user_id = '4'
AND so.order_status = '1'
AND sc.begin_date >= '2020-06-03'
AND sc.begin_time >= '15:00';
1 "SIMPLE" "so" "ALL" NULL NULL NULL NULL 45 "Using where"
1 "SIMPLE" "sc" "eq_ref" "PRIMARY,begin_date,begin_time" "PRIMARY" "8" "school_bus.so.count_id" 1 "Using where"
1 "SIMPLE" "so" "ref" "order_status,user_id" "order_status" "152" "const" 10 "Using index condition; Using where"
1 "SIMPLE" "sc" "eq_ref" "PRIMARY,begin_date,begin_time" "PRIMARY" "8" "school_bus.so.count_id" 1 "Using where"
SELECT
so.uuid,
so.bus_status,
so.seats_ids,
so.order_user,
so.order_time,
sc.bus_id,
so.evaluate_status,
so.comment,
CONCAT(sc.begin_date, ' ', sc.begin_time) begin_time
FROM
sb_order so
LEFT JOIN sb_count sc ON so.count_id = sc.uuid
WHERE
so.user_id = 4
AND so.evaluate_status = "1"
AND so.order_status = "1"
AND (sc.begin_date = "2020-05-30" AND sc.begin_time < "21:00" OR sc.begin_date < "2020-05-30")
1 "SIMPLE" "so" "ref" "user_id_order_eval_status" "user_id_order_eval_status" "312" "const,const,const" 1 "Using index condition"
1 "SIMPLE" "sc" "eq_ref" "PRIMARY" "PRIMARY" "8" "school_bus.so.count_id" 1 "Using where"
SELECT
so.uuid,
so.bus_status,
so.seats_ids,
so.order_user,
so.order_status,
so.order_time,
sc.bus_id,
CONCAT(sc.begin_date, ' ', sc.begin_time) begin_time
FROM
sb_order so
LEFT JOIN sb_count sc ON so.count_id = sc.uuid
WHERE
so.user_id = '4'
AND so.order_status = '0'
AND sc.begin_date >= '2020-06-03'
AND sc.begin_time >= '20:00';
1 "SIMPLE" "so" "ref" "order_status,user_id" "order_status" "152" "const" 8 "Using index condition; Using where"
1 "SIMPLE" "sc" "eq_ref" "PRIMARY,begin_date,begin_time" "PRIMARY" "8" "school_bus.so.count_id" 1 "Using where"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。