---
title: "想到那儿说到那儿之-------Statement/ResultSet"
author: "fanjava"
date: "2006-09-09T12:15:00Z"
tags: []
slug: "statement-resultset"
draft: false
lastmod: "2006-09-09T12:15:00Z"
id: 601659
url: "https://fanjava.iteye.com/blog/601659"
---

Connection物件是代表Java与资料的连接，要执行Statement物件，它用Connection的createStatement()建立Statement物件

Connection conn=DriverManager.getConnection(url,user,password);

Statement stmt=conn.createStatement();