正在加载图片...
第14章数据变动功能网页 运行SQL一般指令 Connection con=Driver Manager. get Connection (jdbc: odbc webData") Statement smt=con. createStatemento String sql ="create table people smt. execute(sql); Statement对象smt是由 Connection类型的对象con调用 create Statement(0 所产生的,而在定义了一个建立数据表的SQL指令字符串sq后,运 行 smt, execute(sq)来运行SL指令。 JSP动态网页新技术 7第14章数据变动功能网页 JSP 动态网页新技术 7 运行SQL一般指令 Connection con = DriverManager.getConnection("jdbc:odbc:webData"); Statement smt = con.createStatement(); String sql = "create table people"; smt.execute(sql); – Statement对象smt是由Connection类型的对象con调用createStatement() 所产生的,而在定义了一个建立数据表的SQL指令字符串sql后,运 行smt.execute(sql)来运行SQL指令
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有