insert Text(data type) value into informix doesn't work


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: insert Text(data type) value into informix doesn't work

  1. #1
    dan k Guest

    insert Text(data type) value into informix doesn't work


    1.. I create a table which works:

    CREATE TABLE test
    (answer Text)

    2.. I try to put a value in answer

    INSERT INTO test (answer) VALUES ('dan');

    It doesn't not work. I keep getting: "A blob data type must be supplied
    within this context. sqlerrm(answer). This is something so simple but doesn't
    work. I'd appreciate any help you can post or email me?

    Thanks, Dan dank@sharperweb.com

  2. #2
    Xin Li Guest

    Re: insert Text(data type) value into informix doesn't work


    Those lines seems to work for me. although if it didn't work for you, maybe
    you can try casting 'dan' as a text object:

    INSERT INTO test (answer) VALUES (CAST('dan' AS text))


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center