如何在SQL Server数据库表列中存储图像 [英] How to store image in SQL Server database tables column

查看:146
本文介绍了如何在SQL Server数据库表列中存储图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据库中有一个名为 FEMALE 的表。它的 ID PK ,它有一个 Image 列。

I Have a table named FEMALE in my database. It has ID as PK, it has an Image column.

我的问题是如何使用SQL查询存储图像?

My Question is how do I store an image using a SQL Query?

推荐答案

尝试一下,

insert into tableName (ImageColumn) 
SELECT BulkColumn 
FROM Openrowset( Bulk 'image..Path..here', Single_Blob) as img






插入

刷新表格

这篇关于如何在SQL Server数据库表列中存储图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆