Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
In Microsoft SQL Server 2005, you can use the CONTAINS predicate to query multiple columns by specifying a list of columns to search. The columns must be from the same table.
The following query searches for the term Red in the Name and Color fields of the Production.Product table.
Use AdventureWorks;
GO
SELECT Name, Color FROM Production.Product
WHERE CONTAINS((Name, Color), 'Red');
See Also
Concepts
Other Resources
Help and Information
Getting SQL Server 2005 Assistance
Change History
| Release | History |
|---|---|
17 July 2006 |
|