where後跟各類查詢條件,當條件爲真時便可查詢出記錄。在這裏where 1,1爲真,也就是where後的條件爲真,查詢表中全部內容。code
SELECT * FROM `sdb_pam_members` WHERE 1 AND `sdb_pam_members`.login_account='18334711695' AND `sdb_pam_members`.login_type='mobile' LIMIT 0, 1;