2011-09-28 3 views

답변

1

첫 번째 줄에는 연결 이름을 만들지 만 두 번째 줄에는 연결 자습서가 있습니다.이 줄은 일부 자습서에서 복사 한 것일 수 있습니다.

getConnection 메서드를 호출 할 때 연결 변수를 사용해보십시오.

0

이 시도 :

String connection = "jdbc:sqlite:/" + Tracking.FILES_LOCATION + "places.sqlite"; 
Connection conn1 = DriverManager.getConnection(connection); 
Statement stat = conn1.createStatement(); 
String Query = "select * from moz_bookmarks"; 
ResultSet rs1 = stat.executeQuery(Query); 
관련 문제