目录
一、数据库增删改查
1、select查询语句
语法:
select * from 表;
select name from 表
select * from students,
select * from students where class=‘AVX01’
2、insert插入语句
语法:
insert into 表 (num,name)values('?','?');
insert into students values (‘2101123456’,’张敏’, ’AVX01’)
3、update更新语句
语法:
update 表 set 字段1='新值' where 字段2='?';
update students set CLASS=‘AVX01’ where name=‘张三’
4、delete删除语句
语法:
delete from 表 where 字段='?';
delete from students where name=‘张三’