navicat for mysql弹框输入查询条件

navicat for mysql的查询编辑器可以弹框查询:

举例:新建查询:

select workAreaName as '机器号',m.jobNumber as '检修人员编号',u.userName as '检修人员姓名',loginTime as '检修开始时间',

CONCAT(FLOOR((TIME_TO_SEC(exitTime) - TIME_TO_SEC(loginTime))/60),'分钟') as '检修持续时长'

from maintenanceprocess as m LEFT JOIN user u ON m.jobNumber = u.jobNumber where m.jobNumber = [$检修人员编号] and loginTime = [$检修开始时间]

运行查询时弹框:

输入检修人员编号、检修开始时间点击确定即可

你可能感兴趣的:(Mysql,navicat)