I wouldn't vote down a question related to SQL as long as it was in the context of a perl program. I view SQL questions much like I view regex related questions in the respect that regexen are applicable to many tools outside of perl.
I've spent a number of years as a *nix sysadmin and I've seen many bad CGI scripts cross my desk. The most common problems I see with CGI scripts are:
- the programmer did not use CGI.pm
- the programmer did not use strict and #!perl -wT
- the programmer used very inefficient or sloppy SQL
I can't tell you how many times I've seen a perl program come across my desk where the author used "SELECT * FROM some_table" and looped through thousands of rows to find a single value from a single column. So in summary, I don't have any problems with SQL related questions (or answers) in the monestary.
I will be interested to hear what others have to say on this matter, I've been thinking about doing a review for Joe Celko's SQL for Smarties: Advanced SQL Programming. The book has no perl code or mention of perl in it whatsoever, but it has been an invaluable tool for me in the context of perl, PHP, and VB development. I haven't done the review yet as I'm not sure if a review of a SQL book is appropriate on PM.
----
Coyote
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.