i use line:
frmMain.sql.SQL.Text := 'select listasprzedaz.* from listasprzedaz where datasprzedazy = "2009-12-20" and idklienta = 0';
to get info from table.
when i use "limit" command - i get server errors. full query:
frmMain.sql.SQL.Text := 'select listasprzedaz.* from listasprzedaz where datasprzedazy = "2009-12-20" and idklienta = 0 limit 128';
this query causes error like:
Error executing query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit 128)' at line 1.
the weird thing is that in that error there is a ")" on the end. i don't know where it came from and i don't know how to delete that.
can anyone help?
lazarus v0.9.28.2