Java數據庫連接——PreparedStatement的使用

首先了解Statement和PreparedStatement的區別: 由此可見,一般使用PreparedStatement。 操作數據庫SU(Course表),其中Course屬性有Cno,Cname,Cpno,Ccredit。 1 public class Demo_2 { 2 3 public static void main(String[] args) { 4 5
相關文章
相關標籤/搜索