1.创建数据库表:
create table 表名(id char(10) not null primary key,name varchar(20) not null,address varchar(50));
2.向表中添加信息:
insert into 表名 values(123,"李阳","上海");
insert int 表名(id,name,address) values(456,"小吾","江苏");
3.查看表里的信息:
select * from 表名;
1.创建数据库表:
create table 表名(id char(10) not null primary key,name varchar(20) not null,address varchar(50));
2.向表中添加信息:
insert into 表名 values(123,"李阳","上海");
insert int 表名(id,name,address) values(456,"小吾","江苏");
3.查看表里的信息:
select * from 表名;