PHP创建myphp个数据库,表名user分别有name,sex,job,Mark字段,用代码实现增查改删
1个回答
展开全部
create database myphp;
use myphp;
create table user(
id int primary key auto_increment,
name varchar(50),
sex char(1),
job varchar(100),
Mark int
);
insert user values(null,'李寻欢','男','飞刀','0');
insert user values(null,'阿飞','男','剑客','2');
insert user values(null,'龙小云','女','富二代','3');
delete from user where id=3;
update user set name='傅红雪' where id=1;
select *from user;
use myphp;
create table user(
id int primary key auto_increment,
name varchar(50),
sex char(1),
job varchar(100),
Mark int
);
insert user values(null,'李寻欢','男','飞刀','0');
insert user values(null,'阿飞','男','剑客','2');
insert user values(null,'龙小云','女','富二代','3');
delete from user where id=3;
update user set name='傅红雪' where id=1;
select *from user;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询