我有一张这样的表
history.listenBefore((location) => {
if(this.props.dirty){
const acceptBtn = {
title: 'STAY',
handler: ignoreRouteChange() //This can be any function I want
}
const denyBtn = {
title: 'IGNORE',
handler: continueRouteChange() //This can be any function I want
}
return dispatch(addNotification({
message: 'You have unsaved changes!',
type: NOTIFICATION_TYPE_WARNING,
duration: 0,
canDismiss: false,
acceptBtn,
denyBtn
}));
return "Usaved changes!"
}
});
我想要它告诉我最后一封信的状态,例如有多少封信和多少封信寄给我......等等
请评论我需要您的反馈
答案 0 :(得分:0)
您需要学习MySQL查询,尤其是SELECT
。{
文档here。
例如,要知道字母closed
的数量,您必须执行以下操作
SELECT COUNT(id) FROM tableName WHERE situation = 'closed';