|
|
|
Как загнать в переменную типа table результат выполнения динамического запроса?
|
|||
|---|---|---|---|
|
#18+
create proc findInAddress @where varchar(500) as begin declare @sql varchar(1000) declare @tab table(firmIndex int) select @sql = 'select firmIndex from ccMain ' + @where exec(@sql) end Нужно в @tab загнать значения, полученные выполнением exec(@sql) Как это можно сделать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.12.2001, 08:52 |
|
||
|
Как загнать в переменную типа table результат выполнения динамического запроса?
|
|||
|---|---|---|---|
|
#18+
"The table data type can be used only to define local variables of type table or the return value of a user-defined function ." ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.12.2001, 09:09 |
|
||
|
|

start [/forum/moderation_log.php?user_name=%D1%85%D0%BC_6]: |
0ms |
get settings: |
9ms |
get forum list: |
17ms |
get settings: |
8ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
181ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
28ms |
get tp. blocked users: |
1ms |
| others: | 570ms |
| total: | 842ms |

| 0 / 0 |
