B
bitzxs
Unregistered / Unconfirmed
GUEST, unregistred user!
在FORM中放一TQUERY、TDATABASE控件,设置好相关属性后(之前已设置好BDE),在程序中写了如下语句:
QueryStr:='SELECT TABLE1.iID FROM TABLE1,TABLE2 WHERE TABLE1.iCostAnalyseID=TABLE2.iID';
QueryCostMachine.SQL.Add(QueryStr);
QueryCostMachine.Prepare;
QueryCostMachine.Open
但执行程序时出现‘Table is Read only'的错误,请问这是怎么回事?
注:(1)SQL SERVER 数据库中TABLE1,TABLE2的权限设为最高
(2)单独对TABLE1,TABLE2查询时没有问题!!!
QueryStr:='SELECT TABLE1.iID FROM TABLE1,TABLE2 WHERE TABLE1.iCostAnalyseID=TABLE2.iID';
QueryCostMachine.SQL.Add(QueryStr);
QueryCostMachine.Prepare;
QueryCostMachine.Open
但执行程序时出现‘Table is Read only'的错误,请问这是怎么回事?
注:(1)SQL SERVER 数据库中TABLE1,TABLE2的权限设为最高
(2)单独对TABLE1,TABLE2查询时没有问题!!!