sql server - contains search over a table variable or a temp table -
I am trying to add multiple columns from one continuous table to a column variable, so that I can add one "Foo" and "bar") and results, even if it is not in the same column as the foo bar.
However, it is not possible to create a unique index on the table variable, so anyone is included to run an integer index.
Is there any way, dynamically, to add multiple columns and run one on them? Here's an example: Enter the ID:
declare @ t0 table (id uniqueidentifier null, search_text varchar (max)) @ t1 table (id uniqueidentifier) @ t0 (id, search_text) , Select the id from @ id id_table in f1 @ t0 in @ t1 (search_text, '' c ++ * '' and 'programming' '' ')
You can not use CONTAINS
on the table, which is not configured to use full text indexing Is gone, and this tale Security can not be applied to variables.
If you want to use CONTAINS (unlike the less flexible PATINDEX), then you have to be the basis of the entire query on the table with the FT index.
Comments
Post a Comment