相关代码 |
|
数据库的创建 String sql; sql="create table message(" +"id int not null AUTO_INCREMENT primary key," +"name char(20) ," +"shade char(100)" +")"; if(data.executeUpdate(sql)){ out.print("Table message created."+""); } sql="insert into message(name,shade) values('jack','Hello JSPWorD')"; if(data.executeUpdate(sql)){ out.print("Record Insert."+""); } %>
相关资源 |
|