Re[3]: Join таблицы, названия которой неизвестно заранее
От: Hobot Bobot США  
Дата: 29.09.05 10:39
Оценка:
Здравствуйте, PSergey, Вы писали:

HB>>А сервер какой?


PS>MS Sql Server 2000


тогда так

exec('SELECT ...  FROM tbProducts p  ... LEFT JOIN ' + c.TableName + ' ... WHERE ...')
What a piece of work is a man! how noble in reason! how infinite in faculty! in form and moving how express and admirable! in action how like an angel! in apprehension how like a god! the beauty of the world! the paragon of animals!
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.