Obtaining Table metadata from mysql in java
问题 Is there a way to get table metadata before first executing select query on the table? Restated: Is there a way to get the column size of a specific row and column of data for the numeric types: int, tinyint, bigint, etc? DatabaseMetaData md = connection.getMetaData(); ResultSet rs = dbmd.getColumns(null, null, tableName, "%"); I can't use the above code as the COLUMN_SIZE for numeric type( int,tinyint,bigint,etc ) will return the maximum allowed size for these types. I need to get the