EMP
表有100列。如果我们输入@searchparameter
的任何值,就像Google搜索一样。它具有在内部检查所有的列,并显示所有列
EmpID Ename Designation
-----------------------------
1 swami GM
2 kiran test
输出:
@Search = 'GM'
EmpID Ename Designation
-----------------------------
1 swami GM
可能重复的[SQL Server SELECT其中任何列包含'x'](http://stackoverflow.com/questions/28717868/sql-server-select-where-any-column-contains-x) – CollinD