测试-数据库
#切换数据库 use
use shopping ;
1.基础查询
语法:select 字段 from 表明 where 条件
select * from student; #从student 里查询所有字段(*代表所有信息)
select name from student; #从student 里查询name栏
select age ,name from student; #从student 里查询name和age栏,字段之间用英文逗号隔开。
select * from student where na
原创
2021-03-16 21:57:30 ·
178 阅读 ·
0 评论