Таже ошибка в обоих случаях:
tables.exc.Close;
tables.exc.SQL.Text:='select ID, ENAME, TYPE, TNAME, CAP, DIST, cast(ID as number) sortpole from exc order by sortpole desc';
tables.exc.Open;
tables.exc.Close;
tables.exc.SQL.Text:='select ID, ENAME, TYPE, TNAME, CAP, DIST, cast(ID as number) as sortpole from exc order by sortpole desc';
tables.exc.Open;
только где Token пишет number)
|