使用where子句:在select语句中,数据根据where子句指定条件过滤,where子句在from子句之后。
检查单个值:select prod_name,prod_price
from Products
where prod_price<10;
不匹配检查:select vend_id,prod_name
from Products
where vend_id!='DLL01';
如果将值与串类型的列进行比较,则需要限定引号,字符串。
范围值检查:为了检测某个范围的值,可使用between操作符范围。
select prod_name,prod_price
from Products
where prod_price between 5 and 10
between里的必须指定两个值,低-高
空值检查:NULL与字段包含0、空字符串或仅仅包含空格不同
select prod_name
from Products
where prod_price IS NULL
三个资料Q群下载不了也转发不了,先放这里Fine_tuning.zipLangChain.zipdata_clear.rar
在第一节基础上 更新了函数和执行顺序:实操了字符数函数、时间函数、字段截取函数、interval函数等,除最后顺序实操因未导入数据库,导致无法执行