$wpdb->query("UPDATE $wpdb->posts SET post_parent = 7 AND post_title = 3 WHERE ID = 15 AND post_status = ‘static'");
居然不能同时设置两个值。。搞了半天。。
$wpdb->query("UPDATE $wpdb->posts SET post_parent = 7 WHERE ID = 15 AND post_status = ‘static'");
$wpdb->query("UPDATE $wpdb->posts SET post_title = 3 WHERE ID = 15 AND post_status = ‘static'");
必须要分开写才能执行,我也是无语了,有朋友碰到这个问题吗?
© 版权声明
THE END
暂无评论内容