How to assign the result of a query to a sample of a database variable?
I make a request through the TADOQuery component:
SQLQuery9.SQL.Text := 'SELECT id FROM details ORDER BY `id` DESC limit 1'; b := SQLQuery9; // присваиваю результат переменной - gives an error on startup.