满sql

Posted liuzhiqaingxyz

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了满sql相关的知识,希望对你有一定的参考价值。

慢的sql:

博:
SELECT `mi`.`wms_material_in_sheet_number` AS `in_sheet_number`, `mi`.`wms_material_in_sheet_type`, `mi`.`common_producer_info_id` AS `info_id`, `mi`.`common_producer_info_id` AS `info_name`, `mi`.`common_producer_herb_info_id` AS `herb_info_id`, `mi`.`common_producer_herb_info_name` AS `herb_info_name`, `mi`.`common_producer_herb_grade_info_id` AS `grade_info_id`, `mi`.`common_producer_herb_grade_name` AS `grade_info_name`, `mi`.`wms_material_in_sheet_in_weight` AS `material_in_weight`, `mi`.`wms_material_in_sheet_total_price` AS `material_in_sum_price`, `modet`.`wms_material_out_sheet_detail_out_weight` AS `material_out_detail_weight` FROM `e_wms_material_in_sheet` `mi` LEFT JOIN `e_wms_material_out_sheet_detail` `modet` ON modet.wms_stock_detail_info_relation_good_in_sheet_number=mi.wms_material_in_sheet_number LEFT JOIN `e_wms_material_out_sheet` `mo` ON mo.id = modet.wms_material_out_sheet_id WHERE mi.is_del = 0
AND mo.is_del = 0
AND mo.wms_material_out_sheet_status = 1
AND mo.common_producer_info_id = ‘168‘
AND mo.common_producer_herb_info_id = ‘86‘
AND mo.common_producer_herb_grade_info_id = ‘272‘
AND mo.wms_out_sheet_type = ‘0‘
AND mo.wms_material_out_sheet_outgoing_date >= 1528992000
AND mo.wms_material_out_sheet_outgoing_date < 1529596800

 

 

 


SELECT `mi`.`wms_material_in_sheet_number` AS `in_sheet_number`, `mi`.`wms_material_in_sheet_type`, `mi`.`common_producer_info_id` AS `info_id`, `mi`.`common_producer_info_id` AS `info_name`, `mi`.`common_producer_herb_info_id` AS `herb_info_id`, `mi`.`common_producer_herb_info_name` AS `herb_info_name`, `mi`.`common_producer_herb_grade_info_id` AS `grade_info_id`, `mi`.`common_producer_herb_grade_name` AS `grade_info_name`, `mi`.`wms_material_in_sheet_in_weight` AS `material_in_weight`, `mi`.`wms_material_in_sheet_total_price` AS `material_in_sum_price`, `modet`.`wms_material_out_sheet_detail_out_weight` AS `material_out_detail_weight` FROM `e_wms_material_in_sheet` `mi` LEFT JOIN `e_wms_material_out_sheet_detail` `modet` ON modet.wms_stock_detail_info_relation_good_in_sheet_number=mi.wms_material_in_sheet_number LEFT JOIN `e_wms_material_out_sheet` `mo` ON mo.id = modet.wms_material_out_sheet_id WHERE mi.is_del = 0
AND mo.is_del = 0
AND mo.wms_material_out_sheet_status = 1
AND mo.common_producer_info_id = ‘11‘
AND mo.common_producer_herb_info_id = ‘136‘
AND mo.common_producer_herb_grade_info_id = ‘218‘
AND mo.wms_out_sheet_type = ‘取样‘
AND mo.wms_material_out_sheet_outgoing_date &gt;= 1528992000
AND mo.wms_material_out_sheet_outgoing_date &lt; 1529596800



















以上是关于满sql的主要内容,如果未能解决你的问题,请参考以下文章

Access SQL 语句创建表总是创建一个满长的字段

Google Cloud SQL 无缘无故地增加大小直到磁盘满

SQL Server日志文件总结及日志满的处理

SQL server数据库日志满了怎么处理?

SQL server数据库日志满了怎么处理?

SQL server数据库日志满了怎么处理?