在mysql中用show table status 捕获各表的状态 那么update_time 是在什么情况下才改变那
能否通过他捕获到mysql中的删除 更新 插入表的纪录?

解决方案 »

  1.   


    update 语句影响的行数可以用row_count函数来判断。
    select row_count();
    至于插入表的纪录如果有你自增字段的话。

    select * from tablename where id =last_insert_id();
    来判断。
    如果没有的话: 
    select * from tablename order by id desc limit 1;
      

  2.   

    喔 今天看了一下 好像show   table   status 生成的table有些字段在win下失效
    在插入更新时,如果是linux系统会改变update_time .当时想用它建一下数据库缓存
    谢谢一楼的
      

  3.   

    MYSQL的高速缓存你用过没有?