Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-12-2008, 12:04 AM
Member
 
Join Date: May 2008
Posts: 1
t3mh4 is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-14-2008, 08:34 AM
Eku Eku is online now
Senior Member
 
Join Date: May 2008
Location: Makati, Philippines
Posts: 175
Eku is on a distinguished road
Can you post the Sql command you've used to create the table country?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-14-2008, 09:12 AM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 183
danielstoner is on a distinguished road
Yes, check the size for your table's columns.
__________________
Daniel @ [
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
Language is froth on the surface of thought
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TextField vs TextBox (2) JavaForums Java Blogs 0 04-23-2008 02:50 PM
TextField vs TextBox (1) JavaForums Java Blogs 0 04-23-2008 02:50 PM
JSP - getting value from a textfield Java Tip Java Tips 0 12-01-2007 09:58 PM
alignment of textfield in awt nitinborge5 New To Java 2 07-30-2007 12:16 PM
set focus to the textfield paty New To Java 1 07-24-2007 01:32 AM


All times are GMT +3. The time now is 10:24 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org