小衫:SQL嵌套查询问题

来源:百度文库 编辑:中科新闻网 时间:2024/05/05 16:57:14
一个ITEM表,code,name
一个STORAGE表,code(对应ITEM里的code),+其他字段
现在要根据name模糊查询STORAGE的记录,如何写SQL?

select s.*
from Strorage s left join ITEM i
on i.code = s.code
where i.name like()--------------模糊查询的条件 ....