[SOLVED] SQL queries lazarus / 16-Databases ---------------------------------------------------------------------- Pe3s · 2023-07-09 18:10 Hello forum users, I have a question: Can we put SQL queries into const or should we not do that? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i const ReadCategory = 'SELECT * FROM Category'; ZQuery1.SQL.Text := ReadCategory; ---------------------------------------------------------------------- cdbc · 2023-07-09 18:12 Hi Of course you can. A string constant is just as good as any  Regards Benny ---------------------------------------------------------------------- Pe3s · 2023-07-09 18:40 Thank you Benny