Article View: borland.public.jbuilder.java.swing
Article #543Retrieve int data from a table
From: Pep
Date: Sat, 18 Jun 2005 19:57
Date: Sat, 18 Jun 2005 19:57
18 lines
1469 bytes
1469 bytes
Hello. I have a problem retrieving the data from a table. When I select a row of data (which I retrieve from a mysql database) one of the columns is an integer type and the others are varchar. I use the next --(String)model.getValueAt(selectedRow, 0)-- to take the value from the row selectedRow and the column 0, and everything is ok. When I try to retrieve the value of a column which store an int type (int in myql), I can't get the value and I can't do the next: (int)model.getValueAt(selectedRow, 3) How can I retrieve this value to store in an int variable???? Thanks
Technical Details
Message-ID:
<42b47cc9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 111d45,a57dea76bd9691e,start X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Pep" <pep@yahoo.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Retrieve int data from a table Date: Sat, 18 Jun 2005 20:57:30 +0100 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 217.124.45.183 Message-ID: <42b47cc9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1119124681 217.124.45.183 (18 Jun 2005 12:58:01 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail