读书人

access 关于时隔日期类型的 update

发布时间: 2012-06-22 16:16:32 作者: rapoo

access 关于时间日期类型的 update
sqlstr="update cpuhistory set [begintime]='"+Edit20->Text+"' where id='"+lsid+"'";
sqlstr="update cpuhistory set [begintime]=#"+Edit20->Text+"# where id='"+lsid+"'";
sqlstr="update cpuhistory set begintime=#"+Edit20->Text+"# where id='"+lsid+"'";
sqlstr="update cpuhistory set begintime='"+Edit20->Text+"' where id='"+lsid+"'";

提示错误:标准表达式中数据类型不匹配
cpuhistory表begintime项是时间日期类型如“2012-5-6 20:33:02”
各位大哥帮个忙,几天了我都搞不对

[解决办法]
lsid的内容是什么,id是字符串类型的字段吗?

读书人网 >C++ Builder

热点推荐