Results 1 to 4 of 4

Thread: How do I INSERT reserved characters?

  1. #1
    Charlie Guest

    How do I INSERT reserved characters?

    The Query:
    INSERT INTO Table1
    VALUE('this doesn't work&#39

    How can I Insert strings like the one above, into my database?

  2. #2
    Paul Guest

    How do I INSERT reserved characters? (reply)

    INSERT into table1
    Set field1
    value 'i am a string'


    ------------
    Charlie at 3/2/01 9:07:46 AM

    The Query:
    INSERT INTO Table1
    VALUE('this doesn't work&#39

    How can I Insert strings like the one above, into my database?

  3. #3
    Charlie Guest

    How do I INSERT reserved characters? (reply)

    What I ment was that the string: "this doesn't work" contains an ' wich is forbidden, because SQL interprets the string as "This doesn" and can't understand the rest of it and therefore generates an error...

    ------------
    Paul at 3/2/01 9:10:33 AM

    INSERT into table1
    Set field1
    value 'i am a string'


    ------------
    Charlie at 3/2/01 9:07:46 AM

    The Query:
    INSERT INTO Table1
    VALUE('this doesn't work&#39

    How can I Insert strings like the one above, into my database?

  4. #4
    MAK Guest

    How do I INSERT reserved characters? (reply)

    thats what paul meant.

    use double quotes for your insert and not single quote.

    the string value can have a single quote

    -MAK


    ------------
    Charlie at 3/2/01 10:09:39 AM

    What I ment was that the string: "this doesn't work" contains an ' wich is forbidden, because SQL interprets the string as "This doesn" and can't understand the rest of it and therefore generates an error...

    ------------
    Paul at 3/2/01 9:10:33 AM

    INSERT into table1
    Set field1
    value 'i am a string'


    ------------
    Charlie at 3/2/01 9:07:46 AM

    The Query:
    INSERT INTO Table1
    VALUE('this doesn't work&#39

    How can I Insert strings like the one above, into my database?

Posting Permissions

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