第八章用通配符进行过滤
来源:互联网 发布:面向对象编程的优点 编辑:程序博客网 时间:2024/05/24 06:51
-- 假如有一张学生表 Id sname score ccid
create table student
(
id int auto_increment,
name varchar(10),
age int,
date varchar(20),
primary key(id)
)engine=innodb;
select sname , score from student where sname like 'wpq%';
-- %可以匹配除null之外的任意值 查询
select sname , score from student where sname like 'null';
-- %匹配不了null
select sname , score from student where sname like 'w_q_';
-- _是一个占位符能匹配除null任意字 只能代替一个位置 出现两次就是两个位置
select concat(sname,score) pj from student;
create table student
(
id int auto_increment,
name varchar(10),
age int,
date varchar(20),
primary key(id)
)engine=innodb;
select sname , score from student where sname like 'wpq%';
-- %可以匹配除null之外的任意值 查询
select sname , score from student where sname like 'null';
-- %匹配不了null
select sname , score from student where sname like 'w_q_';
-- _是一个占位符能匹配除null任意字 只能代替一个位置 出现两次就是两个位置
select concat(sname,score) pj from student;
0 0
- 第八章用通配符进行过滤
- 第八章:用通配符进行过滤
- MYSQL必知必会读书笔记 第八章 使用通配符进行过滤
- 用通配符进行过滤
- 第六章 用通配符进行过滤
- MySQL用通配符进行过滤
- SQL必知必会 笔记 第六章 用通配符进行过滤
- MySQL必知必会-7用通配符进行过滤
- [MYSQL-8]用通配符进行过滤
- 第六课 用通配符进行过滤
- mysql过滤数据(三)用通配符进行过滤
- Database - 读书笔记--SQL必知必会06--用通配符进行过滤
- 读书笔记--SQL必知必会06--用通配符进行过滤
- MYSQL学习笔记(五)用通配符进行过滤
- MySQL 用通配符过滤
- Mysql必知必会(笔记)【高级数据过滤、通配符进行过滤】
- MySQL 基础——使用通配符进行搜索过滤
- MySQL通配符过滤
- 8、jQuery对象
- 结构体位域
- android 一般命令
- 9、jQuery参数
- Android学习 ContentProvider数据更新与Observer模式
- 第八章用通配符进行过滤
- HDU 4267 A Simple Problem with Integers
- 10、选择器Sizzle工作原理
- 11、jQuery选择器
- SciPy-数值计算库
- 12、使用jQuery操作DOM之操作节点
- 第十章 创建计算字段
- OCP 1Z0 053 96
- 13、使用jQuery操作DOM之操作元素