multiple params in a mysql statement

Posted by Kaartz on Stack Overflow See other posts from Stack Overflow or by Kaartz
Published on 2010-03-24T18:07:12Z Indexed on 2010/03/24 18:13 UTC
Read the original article Hit count: 250

Filed under:

i use this statement for a single where condition ('SELECT * FROM users WHERE id = ?', 1)

if I want to check two conditions, how would I do that

('SELECT * FROM users WHERE id=? AND age=?', 1,23)- is this correct?

© Stack Overflow or respective owner

Related posts about mysql