SamaoPHP 提示您,您的代码出错啦!
(!)SamaoPHP错误提示:
所在页面(行): /data/www/sinoweb2018/Apps/Home/controls/news.ctl.php  (37)
错误提示信息:
执行语句错误
Array
(
    [0] => HY000
    [1] => 1290
    [2] => The MySQL server is running with the LOCK_WRITE option so it cannot execute this statement
)

最终执行的SQL: 
update sl_news set `number`=4750 where id='5'
执行函数:
DB::update()
函数参数:
Array
(
    [0] => @pf_news
    [1] => Array
        (
            [number] => 4750
        )

    [2] => where id=?
    [3] => Array
        (
            [0] => 5
        )

)
GET 信息:
Array
(
    [id] => 5
)
错误代码附近:
 35.  		$row = DB::getone('select * from @pf_news where id=?',[IGet('id')]);
 36.  		$number = $row['number']+1;
 37.  		DB::update('@pf_news',array('number'=>$number),'where id=?',[$row['id']]);
 38.  		$this->assign('row',$row);
 39.  		$this->display('news/detail.html');
触发页面(行):/data/www/sinoweb2018/samao/libs/sys/db.class.php (492)
所抛出信息页面(行): (0)

Call Stack Function Location Line
0 DB::update() /data/www/sinoweb2018/Apps/Home/controls/news.ctl.php 37
1 NewsController->DetailAction()
2 call_user_func() /data/www/sinoweb2018/samao/libs/sys/controller.class.php 161
3 Controller->doact() /data/www/sinoweb2018/Apps/Home/controls/news.ctl.php 4
4 NewsController->IndexAction() /data/www/sinoweb2018/samao/samaophp.php 93
5 App::Run() /data/www/sinoweb2018/index.php 32