|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can I create an index on a varable tableI have a table defined inside a function. Can I index it?
If so How? please give me a simple sample code thanks ke n found answer:
NO index can be created however, you can have contraint DECLARE @myTable TABLE ( CPK1 int, CPK2 int, PRIMARY KEY (CPK1, CPK2) ) link: http://databases.aspfaq.com/database/should-i-use-a-temp-table-or-a-table-variable.html SQL Ken wrote: Show quote > I have a table defined inside a function. Can I index it? > If so How? > please give me a simple sample code > > thanks > > ke n |
|||||||||||||||||||||||