Results 1 to 8 of 8

Thread: insert string

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    insert string

    how do i insert a string "N.A" into a column who define as varchar datatype...i tried to use cast but cannot...need to know the right way..

    Insert into Table (xxx) Values ("N.A") ? or ?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: insert string

    INSERT INTO TABLE(fieldname) VALUES('N.A');

    Is it returning some sort of an error?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    the reason why i cant get the other 5 rows is because of this!!!...there are null values...so cant get!!!kakakak thanks alot

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    hmm..i got error for trying that...(the one you give me..)...

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    nope this wont work
    Code:
     INSERT INTO TABLE(field1,field2) VALUES('N.A',xxxx)

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    What's the error, and what is xxxx?


    kakakakka.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    thanks..no eoor already in this part...but have other bugs to resolve..

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Uhm... yes.

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