Results 1 to 3 of 3
  1. #1
    t3mh4 is offline Member
    Join Date
    May 2008
    Posts
    1
    Rep Power
    0

    Default textfield and database

    hi,
    how can i insert my values from textfiels to database,just i need the query.i try something but it gives error like that
    query="insert into country values('"+txtStdName.toString()+"')";
    error is "value too long for type character varying(40)"
    thanks for helping

  2. #2
    Eku
    Eku is offline Senior Member
    Join Date
    May 2008
    Location
    Makati, Philippines
    Posts
    234
    Rep Power
    10

    Default

    Can you post the Sql command you've used to create the table country?

  3. #3
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    10

    Default

    Yes, check the size for your table's columns.
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

Similar Threads

  1. set focus to the textfield
    By paty in forum New To Java
    Replies: 2
    Last Post: 07-09-2010, 09:28 AM
  2. JSP - getting value from a textfield
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-01-2007, 09:58 PM
  3. alignment of textfield in awt
    By nitinborge5 in forum New To Java
    Replies: 2
    Last Post: 07-30-2007, 12:16 PM

Posting Permissions

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