一种可以通过数据窗口来实现。
还有,就是做一个按钮,按钮里面实现你要的修改。具体代码如下,写在按钮的点击事件中。
update score set cour_name = '大学语文' where cour_num = '001';
if sqlca.sqlcode = 0 then //表示更新成功
commit;
messagebox("提示","成功更新数据!")
else //失败
messagebox("提示","更新失败,失败原因为" + string(sqlca.sqlerrtext))
rollback;
end if
sql 语句后加一个分号“;”
update score set cout_name = “大学语文” where cout_num = '001' ;
update score set cour_nam='大学语文' where cusr_num=001