Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Just another Perl shrine
 
PerlMonks  

Re: DBI: error in SQL syntax.

by VSarkiss (Monsignor)
on Aug 09, 2004 at 12:50 UTC ( [id://381294]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to DBI: error in SQL syntax.

You have the right answer above: there's no TABLE keyword in an INSERT statement.

I just wanted to add a hint that may save you some grief later on: rather than depending on the implicit order of columns in your INSERT, list them explicitly:

INSERT INTO pocus ( chr, start, stop, gene_name, score, strand ) VALUES ( ?, ?, ?, ?, ?, ? )
This way, even if the table definition changes, your statement will do what you intend.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://381294]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.