📜  元数据 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:38.483000             🧑  作者: Mango

代码示例2
It is used for to get column information not the actual data of column

Common methods are getColumnCount and getColumnLabel


//ResultSetMetaData itself does not contains any row data
        ResultSetMetaData rsmd = rs.getMetaData();
        
        
        // Metadata -- data about the data
        // ResultSetMetaData -- data about the ResultSet object that 
        contain our resulting rows and columns
        // for example column names, column counts .. and more