fluentpdo

    0熱度

    1回答

    我有一個用戶表,我希望能夠通過電子郵件列過濾表,因此我可以看到所有用戶使用'gmail.com'帳戶,因爲例。 我現在fpdo查詢看起來是這樣的: $filter_email = trim($_GET['email']); $fpdo->from('users') ->where('users.email LIKE "%' . $filter_email . '%"') ->

    0熱度

    1回答

    我想「翻譯」這個查詢到fluentPDO聲明,但我不能找到一種方法,使用子查詢它 SELECT plan.*, COUNT(DISTINCT click.id) AS clicks, COUNT(DISTINCT impression.id) as impressions, IFNULL(A.earnings, 0) AS earnings FROM plan LEFT JOIN click O