selecting the variable column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jump
    New Member
    • Feb 2008
    • 1

    selecting the variable column

    hi !
    i m using the java program and i want to access the variable column from the ms sql server data base .
    when i try to access the particular value as"select * from [table name] where [column name]=[value in string];
    i get the error as invalid column name or invalid descriptor index.
    i would be thank to u if u solve my problem.
    jump
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    Take Sun's JDBC tutorial: http://java.sun.com/docs/books/tutorial/jdbc/index.html
    I suggest always using java.sql.Prepar edStatement instead of the ad hoc java.sql.Statem ent.

    Comment

    Working...