vfp9.0spdmtmp=Alltrim(Thisform.text1.Value)spmctmp=Alltrim(Thisform.text2.Value)sptmtmp=Alltrim(Thisform.text3.Value)spggtmp=Alltrim(Thisform.text4.Value)spdwtmp=Alltrim(...
vfp9.0
spdmtmp=Alltrim(Thisform.text1.Value)
spmctmp=Alltrim(Thisform.text2.Value)
sptmtmp=Alltrim(Thisform.text3.Value)
spggtmp=Alltrim(Thisform.text4.Value)
spdwtmp=Alltrim(Thisform.text12.Value)
khbmtmp=Alltrim(Thisform.text5.Value)
khmctmp=Alltrim(Thisform.text6.Value)
scqytmp=Alltrim(Thisform.text11.Value)
zshmtmp=Alltrim(Thisform.text9.Value)
sdatetmp=Thisform.text7.Value
edatetmp=Thisform.text8.Value
wjmtmp=Alltrim(cuu)
sQLEXEC(mysql_connect,"INSERT INTO newjianyan(spdm,spmc,sptm,spgg,spdw,khbm,khmc,scqy,zshm,sdate,edate,wjm) VALUES(?spdmtmp,?spmctmp,?sptmtmp,?spggtmp,?spdwtmp,?khbmtmp,?khmctmp,?scqytmp,?zshmtmp,?sdatetmp,?edatetmp,?wjmtmp)")
mysql_connect返回的是正数,说明已经连接mysql成功。
执行完,无提示出错。
但mysql里没有插入的记录。
请问这个如何改进?
展开