Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
laker_66
Starting Member
5 Posts |
Posted - 2004-04-30 : 09:14:15
|
| Hi!!! I was wondering how CONTAINS work in a dynamic sql statement where i have more than one table to join as below.FULL TEXT IS ENABLED ON TABLE empThis works.CODEselect s.id from emp s WHERE CONTAINS(*, '"test"')This does not workCODEselect s.id from emp s,emp1 s1 WHERE CONTAINS(*, '"test"')and s.id=s1.idI know the problem is * . But not sure how to use this just for emp table and not emp1 table.The error is as followsA CONTAINS or FREETEXT predicate can only operate on one table. Qualify the use of * with a table name.Thanks!! |
|
|
cas_o
Posting Yak Master
154 Posts |
Posted - 2004-04-30 : 11:19:23
|
| s.* would be my guess.Let me know if it don't work.;-]... Quack Waddle |
 |
|
|
laker_66
Starting Member
5 Posts |
Posted - 2004-05-01 : 12:21:09
|
| Thanks cas_o . It worked !!! |
 |
|
|
|
|
|