如何在SQL Server中将图像数据类型(或varbinary(max))从一个表复制到另一个表,而不必先将数据保存到文件中?
您从一个表中选择记录并插入另一个表中.当您在同一查询中执行此操作时,数据不会离开数据库,因此您无需将其存储在任何位置.
例:
insert into SomeTable (SomeId, SomeBinaryField)
select SomeId, SomeBinaryField
from SomeOtherTable
where SomeId = 42
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11633 次 |
| 最近记录: |