Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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


In reply to Re: SQuirreL Monks by Coyote
in thread SQuirreL Monks by Masem

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found