It's not a secret anymore!
The moose likes JDBC and the fly likes Change column size Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Change column size" Watch "Change column size" New topic
Author

Change column size

Joel Christophel
Ranch Hand

Joined: Apr 20, 2011
Posts: 119

How would I go about changnig the size/length of a column? (e.g. 25 characters)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Use the ALTER [table_name] ALTER COLUMN [column_name] command.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Change column size
 
Similar Threads
JTable
NX: Programmatically sizing a Column in JTable
Records display after re-sizing column size
Linebreak in HTML/CSS within a table
errors uploading an image to the database