Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道如何创建查询来搜索表中以“ab”开头的任何条目吗?
你应该使用like语句
select * from table where columnName like 'ab%'
编辑:在您的情况下,这应该可以解决您的问题
select * from GardenType where GardenType.GardenType like 'ab%'
有什么理由这行不通吗?
SELECT * from TABLE WHERE col1 like 'ab%' or col2 like 'ab%' or....