• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing Schema

 
Barry Andrews
Ranch Hand
Posts: 529
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is in reference to the other post I have here. I am just asking it in a more intelligent way. How do you change the Schema of a Table using JDBC. Example code would be helpful. Thanks!!!

Barry
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDBC is used to run SQL statements so if you want to run an ALTER TABLE, you would just run it using the executeUpdate() method.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!