我有一个表名Product包含 3 列:
Product-id
name
Price
在name列中,所有产品名称都存在。
示例:1340 GPS、1340T GPS 等。
当我写
select top 10 * from product where contains(name,'1340');
结果 1 行1340 GPS
但是当我搜索
select top 10 * from product where name like '%1340%';
那么结果就是1340 GPS and 1340T GPS。
实际上我的要求是我会使用contains(),但它必须显示像LIKE运算符这样的行。
怎么做:?
请帮忙
提前致谢