oracle插入例子

时间:2022-10-02 12:28:56

string sql = "insert into EMST_JC_SBXX(XL,SBBM,SBWH,SBMC,CCBM,XNCS,CZXL,ZL,GL,ZZCJ,TCRQ,SYQX,XHGG,ZT,SFTZSB,CGJ,TH,BZ) values(EMST_JC_SBXX_XL.nextval,'" + SBBM + "','" + SBWH + "','" + SBMC + "','" + CCBM + "','" + XNCS + "'," + Convert.ToInt32(CZXL) + "," + Convert.ToInt32(ZL) + "," + Convert.ToInt32(GL) + "," + Convert.ToInt32(ZZCJ) + ",to_date('" + Convert.ToDateTime(TCRQ).ToString("yyyy-MM-dd") + "','YYYY-MM-DD')," + Convert.ToInt32(SYQX) + ",'" + XHGG + "'," + Convert.ToInt32(ZT)