在sqlserver中插入多个图像名称 [英] Inserting multiple image names in sqlserver
本文介绍了在sqlserver中插入多个图像名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在结构如下的表格中插入多个图像名称:
I want to insert multiple imagenames in a Table structured as shown below:
<br />
EMP(name varchar, imagename varchar(max));<br />
通过使用Asp.Net中的FileUpload控件,图像将存储在服务器上...
仅图像名称存储在数据库中,我想允许用户最多仅插入20张图像吗?
是否可以在一个表的单个列中存储多个图像名称,还是需要使用另一个表?
Aspx代码如下所示:
by using FileUpload control in Asp.Net, and image is going to store on server...
only image name is stored in database, and I want to allow the user to insert maximum of 20 images only?
Is it possible to store multiple image names in a single column in a table or do I need to use another table?
Aspx code is shown below:
<asp:TextBox ID="txtcustname" runat="server" MaxLength="50" ></asp:TextBox>
upload image <asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button ID="Button1" runat="server" Text="Save" OnClick="Button1_Click" BorderColor="#333399"/>
推荐答案
I w可以使用另一个表,但是可以,您可以在单个列中进行操作.不过,您将不得不使用定界符.
I would use another table, but yes you can do it in a single column. You''ll have to use a delimiter though.
这篇关于在sqlserver中插入多个图像名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文