执行非查询SQL语句


$sql = 'DELETE FROM topic_channel WHERE channel_id = 100 AND type = 1';
User::connection()->execute($sql);


$sql = 'DELETE FROM topic_channel WHERE channel_id = ? AND type = ?';
User::connection()->execute($sql, [100, 1]);