Rumah > Soal Jawab > teks badan
UPDATEvideo SET 0='page_view',1=page_view+1 WHERE ( video_id = '94' )
执行后报错
php程序是:
Model('video')->editMbVideo(array('page_view',array('exp','page_view+1')),$live_id);
这么写的
三叔2016-11-08 12:40:49
UPDATE video SET `page_view` = 0, `page_view` = `page_view` + 1 WHERE ( `video_id` = '94' );
注意列名标识符是 `` 不是 '',看清楚;
Update语法:
UPDATE table_name SET column1=value, column2=value2,... WHERE some_column=some_value