import java.sql.*; public class CheckData { public static void main(String[] args) { String url = "jdbc:dm://192.168.0.145:30236?charset=utf8"; String username = "WATERSHED"; String password = "WaterShed./1224"; Connection conn = null; Statement stmt = null; ResultSet rs = null; try { Class.forName("dm.jdbc.driver.DmDriver"); conn = DriverManager.getConnection(url, username, password); stmt = conn.createStatement(); System.out.println("Connected to database successfully!"); String sql = "SELECT SCENE_ID, SCENE_NAME, THIRD_PERSON_CAMERA_HEADING, THIRD_PERSON_CAMERA_PITCH, THIRD_PERSON_CAMERA_ROLL, THIRD_PERSON_CAMERA_DIRECTION, THIRD_PERSON_CAMERA_UP FROM BUSINESS_SCENE ORDER BY SCENE_ID DESC"; rs = stmt.executeQuery(sql); while (rs.next()) { System.out.println("\n=== Scene ID: " + rs.getLong("SCENE_ID") + " ==="); System.out.println("Scene Name: " + rs.getString("SCENE_NAME")); System.out.println("Heading: " + rs.getDouble("THIRD_PERSON_CAMERA_HEADING")); System.out.println("Pitch: " + rs.getDouble("THIRD_PERSON_CAMERA_PITCH")); System.out.println("Roll: " + rs.getDouble("THIRD_PERSON_CAMERA_ROLL")); System.out.println("Direction: " + rs.getString("THIRD_PERSON_CAMERA_DIRECTION")); System.out.println("Up: " + rs.getString("THIRD_PERSON_CAMERA_UP")); } } catch (Exception e) { e.printStackTrace(); } finally { try { if (rs != null) rs.close(); if (stmt != null) stmt.close(); if (conn != null) conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } }