我正在查询我的表机场名称为'term%'的行,并按名称排序。它看起来像这样,它工作正常:
from Airport where name like 'term%' order by name
现在我想在同一个查询中的列城市中查找“term%”,但我无法让它工作。 我想有类似的东西,但这不对:
from Airport where name like 'term%' or where city like 'term%' order by named
答案 0 :(得分:1)
您应该只有一个where
:
from Airport where name like 'term%' or city like 'term%' order by name
答案 1 :(得分:0)
查询应该是
from Airport where name like 'term%' or city like 'term%' order by name
而不是
from Airport where name like 'term%' or where city like 'term%' order by named
仅使用一个where
子句及其name
而非named