使用TQuery,datasource,DBGrid,DBNavigator写一个简单的数据库程序,
TQuery.sql='select * from student ';
TQuery属性中能设TRUE的地方我都设为TRUE了
DBGrid,DBNavigator都和datasource相连,datasource和TQuery相连程序运行后能显示student表中的数据,但当我在DBGrid中编辑后,点击DBNavigator的
更新按钮,出现错误,提示是:
Table does not support this operation because it is not uniquely indexed
我用的数据库是mssql,delphi7