我有两个表,其中包含以下tb_Types和tb_TypePrices:
tb_Type
-------
id
title
tb_TypePrices
-------------
id
typeId
fromQuantity
ToQuantity
Supplier
Price
这些表有父子关系
现在我想从tb_Typesjoin中获取数据tb_TypePriceswhere typeId=mytypeIdand parameterQuantityis NOT between fromQuantityand ToQuantity。