• 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

get column value in a database

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all members,
Normally we get data/value from database by writting a sql statement, right? How about without writing the sql statement, can i get the data?
For an example, when i run the application a JFrame with the JTable will popup if the database date equal current date...
Without using sql statement which means using DB.FIELD but there were errors when compiling...why?
Any code can show to mehow to apply without sql queries?
THANK YOU SO MUCH.....
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SQL is the Query Language of each modern relational database.
There are certain technologies/frameworks like JDO, iBatis, Hibernate
to wrap the SQL statements and make the handling object oriented. But basiclly every database access is done with SQL. There is no other way to access the db except to read the data files.
 
Kevin Ng
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Oliver Refle,
So can you show me how to code this. When the application execute, in the mainpage a popup JFrame contains a JTable with the entire records in a database if database column equals to current date else the JFrame will not popup.....
Thanks....
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a good place to start is the java tutorial - JDBC trail
Jamie
 
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic