Home >Database >Mysql Tutorial >mysql多层开发更新数据问题_MySQL

mysql多层开发更新数据问题_MySQL

WBOY
WBOYOriginal
2016-06-01 13:45:141029browse

bitsCN.com

问题:
开发环境:delphi7se + mysql 5.0.67 + dbexpress 2.0 + mysql50open
开发控件:tsimpledataset+datasoure+dbgrid/dbedit
权限:mysql已经授权用户有select/update权限.
但是如果数据有修改,applyupdates(0)始终报告出错.
加入outputdebugstring(pchar(strList)),在view/debug windows/event log中监测到两条错误信息:
"Record not found or changed by another user."
"Unable to find record. No key specified."

解决方法:
from http://delphi.ktop.com.tw/board.php?cid=30&fid=66&tid=35255

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn