private int Id; private String username; private String passwd; private int old; public int getId() { return Id; } public void setId(int id) { Id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPasswd() { return passwd; } public void setPasswd(String passwd) { this.passwd = passwd; } public int getOld() { return old; } public void setOld(int old) { this.old = old; } private int Id; private String username; private String passwd; private int old; public int getId() { return Id; } public void setId(int id) { Id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPasswd() { return passwd; } public void setPasswd(String passwd) { this.passwd = passwd; } public int getOld() { return old; } public void setOld(int old) { this.old = old; } private int Id; private String username; private String passwd; private int old; public int getId() { return Id; } public void setId(int id) { Id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPasswd() { return passwd; } public void setPasswd(String passwd) { this.passwd = passwd; } public int getOld() { return old; } public void setOld(int old) { this.old = old; }建表sql语句和几条插入语句
时间: 2024-04-08 08:35:07 浏览: 56
nfs_idmap.rar_idmap
根据您给出的Java代码,我可以看出您想要创建一个名为"users"的用户表,其中包含ID、用户名、密码和年龄。以下是对应的建表SQL语句和几条插入语句:
建表SQL语句:
```sql
CREATE TABLE users (
Id INT PRIMARY KEY,
username VARCHAR(50),
passwd VARCHAR(50),
old INT
);
```
插入语句示例:
```sql
INSERT INTO users (Id, username, passwd, old)
VALUES (1, 'John', 'password1', 25);
INSERT INTO users (Id, username, passwd, old)
VALUES (2, 'Jane', 'password2', 30);
INSERT INTO users (Id, username, passwd, old)
VALUES (3, 'Mike', 'password3', 35);
```
请注意,上述代码中的插入语句只是示例,您可以根据实际需求修改插入的数据。希望对您有所帮助!
阅读全文