📜  pdo inner join 获取第一行用户名 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:10.783000             🧑  作者: Mango

代码示例1
SELECT
  users.user_login,
  users_banlist.user_banlist
FROM
  users INNER JOIN
  users_banlist ON users.ID=users_banlist.user_id
WHERE
  users.user_login = ? OR
  users_banlist.user_banlist = ?