dongtou5557
2015-03-11 17:25
浏览 30
已采纳

用php和bootstrap的Mysql查询进度条

A basic Bootstrap progress bar looks like this:

<div class="progress">
   <div class="progress-bar" role="progressbar" aria-valuenow="70"
   aria-valuemin="0" aria-valuemax="100" style="width:70%">
     70%
   </div>
</div>

How could I update in real time the percentage values, based upon the progress of a Mysql SELECT query that takes from a few seconds up to a minute to finish.

I´m using php for the application.

Thanks!

图片转代码服务由CSDN问答提供 功能建议

基本的Bootstrap进度条如下所示:

 &lt  ; div class =“progress”&gt; 
&lt; div class =“progress-bar”role =“progressbar”aria-valuenow =“70”
 aria-valuemin =“0”aria-valuemax =“100”style  =“width:70%”&gt; 
 70%
&lt; / div&gt; 
&lt; / div&gt; 
   
 
 

我如何实时更新 百分比值,基于 Mysql SELECT 查询的进度,从几秒到一分钟完成。

我使用的是php 应用程序。

谢谢!

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongshenyu4638 2015-03-11 17:46
    已采纳

    UPDATE: Looks like this is possible with MariaDB 5.3+ now. anyway, I wouldn't suggest doing this because you'll use vendor-specific extensions.

    Referring to MySQL Long Query Progress Monitoring, it isn't possible to monitor a MySQL query. The only thing you could do is to split queries and then check how many queries ran through already.

    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题