http://www.perlmonks.org?node_id=981937


in reply to Why does my query work on the command line, but fail in my browser?

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 Re: Why does my query work on the command line, but fail in my browser?
  • Download Code