司剑虹俺家住在黄华街:SQL嵌套查询问题

来源:百度文库 编辑:神马品牌网 时间:2024/05/02 17:19:53
一个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()--------------模糊查询的条件 ....