- 浏览: 24339 次
- 性别:
文章列表
---第一步 创件实体类
package com.Bookinfo.web.util;
public class Book {
private int id;
private String name;
private String author;
private String press;
private String price;
public Book(int id, String name, String author, String press, String price) {
super();
this.id = id;
this.name = name;
...
--- 第一步 实体类
package com.student.DAO.util;
public class User {
private String name;
private String password;
private String email;
public User(String name,String password,String email) {
super();
this.name = name;
this.password = password;
this.email ...
--sql文件
if exists (select * from sys.objects where name='demodb')
drop database demodb
go
create database demodb
go
use demodb
go
create table t_user
(
name nvarchar(20) ,
[password] nvarchar(20),
email nvarchar(30)
)
go
select * from t_user
// java 代码
package com.studen ...