单表查询中的where条件查询的使用
发布时间
阅读量:
阅读量
单表查询
语法结构为: select |字段列表|表达式 from table_name*[where 条件]**[order by 字段列表]
以下为具体实现代码:
首先创建表
create table student(
id char(36) primary key,
name varchar(8) not null,
age int(3) default 0,
mobile char(11),
address varchar(150)
)
随后引入相关数据
insert into student
values ('9b4435ec-372c-456a-b287-e3c5aa23dff4','张三',24,'12345678901','北京海淀');
insert into student
values ('a273ea66-0a42-48d2-a17b-388a2feea244','李%四',10,'98765432130',null);
insert into student
values (
全部评论 (0)
还没有任何评论哟~
