mysql 执行后 sending data 占用时间82% 的时间 总耗时要3秒左右,关键是我是在NetBeans中关联这个视图
不可能每次执行程序都要等3秒。SELECT`pd`.`id`AS`id`,`pd`.`Service_number`AS`Service_number`,`pd`.`pr...
不可能每次执行程序都要等3秒。
SELECT
`pd`.`id` AS `id`,
`pd`.`Service_number` AS `Service_number`,
`pd`.`project_date` AS `project_date`,
`pd`.`project_name` AS `project_name`,
`pd`.`Responsible_project` AS `Responsible_project`,
`pd`.`Business_units` AS `Business_units`
FROM
`project_detail` `pd`
WHERE
NOT
EXISTS(
SELECT
1
FROM
`project_detail`
WHERE
`project_detail`.`Service_number` = `pd`.`Service_number`
AND
`project_detail`.`project_date` > `pd`.`project_date`) 展开
SELECT
`pd`.`id` AS `id`,
`pd`.`Service_number` AS `Service_number`,
`pd`.`project_date` AS `project_date`,
`pd`.`project_name` AS `project_name`,
`pd`.`Responsible_project` AS `Responsible_project`,
`pd`.`Business_units` AS `Business_units`
FROM
`project_detail` `pd`
WHERE
NOT
EXISTS(
SELECT
1
FROM
`project_detail`
WHERE
`project_detail`.`Service_number` = `pd`.`Service_number`
AND
`project_detail`.`project_date` > `pd`.`project_date`) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询