AnsiString STR, cmdbuf;
Cmdbuf="select the name from tab_a";
OpenSQL (data - & gt; Temp, cmdbuf);
STR=data - & gt; Temp - & gt; FieldByName (" name ") - & gt; AsString;
The above statement execution normal no problem
AnsiString STR, cmdbuf;
Cmdbuf="select name as id from tab_a";
OpenSQL (data - & gt; Temp, cmdbuf);
STR=data - & gt; Temp - & gt; FieldByName (" id ") - & gt; AsString;
C + + builder. 60 newspaper "Table is read only. The" SQL: select the name as id from tab_a such mistakes
SQL statements are executed independently no problem
CodePudding user response:
Done, and the main problems on the tquery Settings, equestlive=false can be.