我已经在工作台中也已在SQL Server的my.ini文件中设置了最大超时max_allowed_packet = 64M,但问题是相同的 错误代码:2013。查询期间丢失与MySQL服务器的连接
//这是我查看的代码
CREATE
ALGORITHM = UNDEFINED
DEFINER = `root`@`localhost`
SQL SECURITY DEFINER
VIEW `sales_gp_view` AS
SELECT
`m_sales`.`date` AS `sales_date`,
`m_sales`.`user` AS `cashier`,
`m_sales`.`salesman` AS `salesman`,
`m_sales`.`sold_to` AS `s_to`,
`m_sales`.`address_to` AS `add_to`,
`m_sales`.`date_updated` AS `date_updated`,
`m_sales`.`branch_name` AS `branch_name`,
`m_sales`.`si` AS `si`,
`m_sales`.`remarks` AS `remarks`,
`m_sales_items`.`quantity` AS `quantity`,
`m_sales_items`.`name_id` AS `name_id`,
`m_sales_items`.`price` AS `price`,
`m_sales_items`.`name_code` AS `name_code`,
`m_sales_items`.`name` AS `description`,
`m_sales_items`.`total` AS `total`,
`m_sales_items`.`invid` AS `invid`
FROM
(`m_sales`
LEFT JOIN `m_sales_items` ON (((`m_sales`.`branch_id` = `m_sales_items`.`branch_id`)
AND (`m_sales`.`branch_name` = `m_sales_items`.`branch_name`)
AND (`m_sales`.`date_deleted` = ''))))
m_sales表有150360行,m_sales_item有281375行