在SQL Server中保存和输出图片


** 介绍 **

有时候我们需要保存一些 binary data 进数据库。 SQL Server 提供一个叫做 image 的特殊数据类型供我们保存 binary data 。 Binary data 可以是图片、文档等。在这篇文章中我们将看到如何在 SQL Server 中保存和输出图片。

** ** ** 建表 **

为了试验这个例子你需要一个含有数据的 table( 你可以在现在的库中创建它,也可以创建一个新的数据库 ) ,下面是它的结构:

Column Name

Datatype

|

Purpose

---|---

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus