或者用语句也行,谢谢大家了string strSql = "Insert into z_GoodsInfo(Goods_ID,Goods_name,Type_typeID,Goods_addDate) values (............'" + strName + "','" + strType + "','" + DateTime.Now + "');";