读书人

mysql 语句有关问题?有答就给分

发布时间: 2012-03-24 14:00:46 作者: rapoo

mysql 语句问题?有答就给分
update from account_info set effectmoney=‘"+IntToStr(type)+"' where userno=‘"+conn+"' 请问这句语句有错吗?

[解决办法]
好像是

update 表名 set 字段=XXX where 字段=XXX 应该是这样的吧.

如果你一定要用FORM

update 表名set 字段=b.字段 from 表名1 a,表名2 b where a.id=b.id and 字段=XXX


[解决办法]
update account_info set effectmoney=‘"+IntToStr(type)+"' where userno=‘"+conn+"'这样就应该可以!!

读书人网 >C++ Builder

热点推荐