Události
SQL ve společnosti FabCon Vegas
31. 3. 23 - 2. 4. 23
Největší událost učení SQL, Fabric a Power BI. 31. března – 2. dubna. Pomocí kódu FABINSIDER uložte $400.
Zaregistrovat se ještě dnesTento prohlížeč se už nepodporuje.
Upgradujte na Microsoft Edge, abyste mohli využívat nejnovější funkce, aktualizace zabezpečení a technickou podporu.
To query a result set for information about the columns that it contains, the Microsoft JDBC Driver for SQL Server implements the SQLServerResultSetMetaData class. This class contains numerous methods that return information in the form of a single value.
To create a SQLServerResultSetMetaData object, you can use the getMetaData method of the SQLServerResultSet class.
In the following example, an open connection to the AdventureWorks2022 sample database is passed in to the function, the getMetaData method of the SQLServerResultSet class is used to return a SQLServerResultSetMetaData object, and then various methods of the SQLServerResultSetMetaData object are used to display information about the name and data type of the columns contained within the result set.
public static void getResultSetMetaData(Connection con) {
try(Statement stmt = con.createStatement();) {
String SQL = "SELECT TOP 10 * FROM Person.Contact";
ResultSet rs = stmt.executeQuery(SQL);
ResultSetMetaData rsmd = rs.getMetaData();
// Display the column name and type.
int cols = rsmd.getColumnCount();
for (int i = 1; i <= cols; i++) {
System.out.println("NAME: " + rsmd.getColumnName(i) + " " + "TYPE: " + rsmd.getColumnTypeName(i));
}
}
// Handle any errors that may have occurred.
catch (SQLException e) {
e.printStackTrace();
}
}
Události
SQL ve společnosti FabCon Vegas
31. 3. 23 - 2. 4. 23
Největší událost učení SQL, Fabric a Power BI. 31. března – 2. dubna. Pomocí kódu FABINSIDER uložte $400.
Zaregistrovat se ještě dnesŠkolení
Modul
Použití systémových katalogů a systémových zobrazení v PostgreSQL - Training
Relační databáze můžou ukládat obrovské množství dat, ale potřebují také uchovávat informace o struktuře těchto dat. Pro systém správy operačních databází (DBMS) informace o struktuře tabulek a všech ostatních objektech, zabezpečení a souběžnosti je potřeba mimo řadu dalších nastavení a metrik. Tyto informace jsou známé jako metadata a jsou uloženy v systémových katalogech ve službě Azure Database for PostgreSQL. Kromě přímého přístupu k systémovým katalogům můžete získat přístup k systémovým zobrazením, kt
Dokumentace
Using multiple result sets - JDBC Driver for SQL Server
Learn how to query and retrieve multiple result sets from a single execute using the JDBC Driver for SQL Server.
SQLServerCallableStatement Members - JDBC Driver for SQL Server
SQLServerCallableStatement Members
SQLServerCallableStatement Class - JDBC Driver for SQL Server
SQLServerCallableStatement Class