Results 1 to 4 of 4

Thread: Error in SQL syntax?

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Error in SQL syntax?

    Real quick, what's wrong with this?:

    INSERT INTO replies ('title', 'createdBy', 'createdOn', 'body', 'thread') VALUES ('', 'Kristopher', '2002.07.04 23:39:06', 'test', '1')
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Nevermind, figured it out:

    INSERT INTO replies (title, createdBy, createdOn, body, thread) VALUES ('', 'Kristopher', '2002.07.04 23:39:06', 'I think you\'re stupid!', '1')
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    Si_the_geek
    Guest
    Originally posted by The Hobo
    'I think you're stupid!'
    that value wouldn't work

  4. #4

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Si_the_geek

    that value wouldn't work
    I actually put the "\" there (I can see it when I go to edit my post), but the forums remove it for some reason. I know that it wouldn't work.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width