SQL server 数据库表 插入图象字段问题??
public void AddGoods(string gname,int type,double price,double disc,image im,string memo )
{
strSQL = "insert into Goods(GoodsName,Ptype,Price,Discount,Image,Description) values( '"+gname
+ "' ,'" + type
+ "', '" +price
+ "' ,'" + disc
+"' ,'" + im
+ "' ,'" + memo
+"')";
在函数中 图象 的类型 是什么??? 不是 Image or image 定义成 SqlDbType.Image 也出错!!
请问各位 怎写??
谢谢!!