Keep It Simple, Stupid | |
PerlMonks |
(OT) MySQL select Questionby Anonymous Monk |
on Jul 26, 2003 at 21:44 UTC ( [id://278142]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hello, My question is: I want to do a reletively simple select I think, something like this, except this doesn't work, so I need the correct syntax. I think I might have to use the JOIN, but I don't really know what that is either, my SQL is a bit dodgy to say the least! :-)
This doesn't work:
Can anyone suggest a way to make this work? I want to select all fields from table1 where either table1.category = 1 OR where table2.parent_id = 1, but I can't seem to find a way to do this......... Many thanks, and if it helps to justify this question being posted on this forum, I am writing everything using the Perl DBI module, which is totally excellent!!!! :-) Cheers,
Back to
Seekers of Perl Wisdom
|
|