Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Answer: Why does my query work on the command line, but fail in my browser?

( #981937=categorized answer: print w/ replies, xml ) Need Help??

Q&A > database programming > Why does my query work on the command line, but fail in my browser? contributed by cavac

The query

INSERT member (last, first) VALUES(NULL, "chromatic");
also uses double quotes. Most databases either don't accept that, or interpret it in some other way (like PostgreSQL, which uses it to indicate that column name or table name is case sensitive.

This is especially problematic when you just copy the whole string from whatever tool you use to test the queries into Perl.

Comment on Answer: Why does my query work on the command line, but fail in my browser?
Download Code
Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2014-09-21 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls