• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jframe not accepting sql query..

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a project in which i have created an object of "showrecord" jframe inside the "collect" jframe.. the "showrecord" class display all the record from the database.. but it is showing an SQL error.. please help me solve the problem..

collect class



showrecord class


please help..
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> but it is showing an SQL error..

1) Well, then that would be an SQL problem, not a Swing problem

2) And we are not mind readers. We can't exeucte your code since we can't access your database, so we have no idea what the "SQL error message" is.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please http://faq.javaranch.com/java/TellTheDetails but also http://faq.javaranch.com/java/IsolateTheProblem

You have an SQL error, yet (as Rob C noticed) you haven't told us what SQL error. Either way, you can limit the code posted to the actual SQL code:
Now we have less code to read, I think I see the error:
If a column name has spaces in it, you must put grouping characters around it. For ODBC, Access and MS SQL that's brackets:

Moving to JDBC.
 
reply
    Bookmark Topic Watch Topic
  • New Topic