i have created database using MySQL in which i have table modules which include progID,title,code and credit columns both having data inserted, progID column takes values from 1 to 19 but when i run this query "SELECT * FROM modules WHERE progID=2 AND progID=18" it returns this: "MySQL returned an empty result set (i.e. zero rows). ( Query took 0.0019 sec )" any idea
MySQL problem
Page 1 of 12 Replies - 733 Views - Last Post: 09 August 2012 - 08:33 AM
Replies To: MySQL problem
#2
Re: MySQL problem
Posted 09 August 2012 - 02:26 AM
Try switching the "AND" to "OR".
#3
Re: MySQL problem
Posted 09 August 2012 - 08:33 AM
Moved to MySQL.
What do you get WITHOUT the WHERE clause? I.e., select * from modules?
What do you get WITHOUT the WHERE clause? I.e., select * from modules?
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|