多表更新中受影响的行数 [英] number of rows affected in mutltiple table update
本文介绍了多表更新中受影响的行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想得到mysql php中影响的行数
更新正常影响但是没有显示受影响行的数量
I want to get the number of rows affected in mysql php
updating is affecting properly but it is not showing the number of affected rows
update user_register , comments,articles
set
user_register.locked=1,
comments.locked=1,
articles.locked=1
where
user_register.user_id=1
and
comments.user_id=1
and
articles.user_id=1
推荐答案
尝试使用 ROW_COUNT() [ ^ ]
尝试使用 mysql_affected_rows [ ^ ]执行SQL语句后。
Try using mysql_affected_rows[^] after executing the SQL statement.
这篇关于多表更新中受影响的行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文