in reply to Returning a single record
First of all, this node may tell you why people don't take you seriously.
To improve your request, please read
Finally, you are asking why your query returns more than one
record.
Well, since your query is "Select 'John Smith' from TblOne",
it is clear to anyone who knows some basic SQL that
such query will return the string 'John Smith'
for every row in your table. There is nothing
wrong in your Perl code (besides horribly mixing bits and pieces from
the programming logic and the presentation layer, and being a
candidate for
Cargo cult that's it). You should look for a SQL guide.
Therefore, I invite you once more to read the basic rules, especially the part saying "know your tools".
HTH
|
|---|