douhuan3448 2016-12-30 20:27
浏览 12

如何从php页面触发

suppose i have a databse exam(id,ststus) now, status is not started,but i want to change status to 'started' after a particular time. Now i know, i can write a trigger for this,to change it ,depending on sysdate.

but,as i am making a website in php,so i have to write the code in a php page.

my question is, 1) will the trigger work automatically,or i need to at least open that particular page,leave it as it is, then at particular time,it will get refreshed and database will change?

2)how exactly does this trigger work?

  • 写回答

1条回答 默认 最新

  • duandaotuo5542 2016-12-30 21:17
    关注

    Trigger can be run ON DELETE, ON UPDATE or ON INSERT a row in table, and it is stored in db and you don't have to call any page to run it. Events çan be schedule and it can be run after a period, for example every one week, i think you need an event.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度