Re: Why Doesn't This MySQL Statement Execute?

Discussion in 'Python' started by Chris Angelico, Dec 18, 2012.

  1. On Wed, Dec 19, 2012 at 9:28 AM, Tom Borkin <> wrote:
    > No (lol). It returns a date as a string: "2012-12-12" for example.
    > Tom


    Then that's why it doesn't work. Wayne was hinting at a major MAJOR
    problem with your code; it's interpolating data into the SQL
    statement, instead of providing parameters to the query.

    Don't do it! Just don't!

    ChrisA
     
    Chris Angelico, Dec 18, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roedy Green
    Replies:
    1
    Views:
    796
    Aquila Deus
    Aug 22, 2005
  2. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,031
    Smokey Grindel
    Dec 2, 2006
  3. Replies:
    21
    Views:
    1,063
    Giannis Papadopoulos
    Aug 2, 2005
  4. Tom Borkin
    Replies:
    5
    Views:
    195
    Dennis Lee Bieber
    Dec 19, 2012
  5. Wayne Werner
    Replies:
    0
    Views:
    135
    Wayne Werner
    Dec 18, 2012
Loading...

Share This Page