create table fruits
(
f_id char(10) not full,
s_id int not full,
f_name char(255) not full,
f_price decimal(8,2) not full,
primary key(f_id)
);
create table suppliers
(
s_id int primary key,
s_name varchar(50),
s_city varchar(30)
);
看表的一部分:
select s_name,s_city from suppliers;
例:
(1)、查询价格为10.2元的水果名称
select f_name,f_price
from fruits
where f_price=10.2;
(2)、查找名称为apple的水果价格
select f_name,f_price
from fruits
where f_name='apple';
说明f_name可省略,只是为了方便查看。
(3)、查询价格小于10元的水果名称
select f_name,f_price
from fruits
where f_price<10;
三个资料Q群下载不了也转发不了,先放这里Fine_tuning.zipLangChain.zipdata_clear.rar
在第一节基础上 更新了函数和执行顺序:实操了字符数函数、时间函数、字段截取函数、interval函数等,除最后顺序实操因未导入数据库,导致无法执行