How to prepared statement query at limit and offset
im trying to querying prepared statement at limit and offset but error
Success

Error

From the error text it looks like the problem is in the sql query. Could you show your .execute() or prepare() arguments?
From the error text it looks like the problem is in the sql query. Could you show your
.execute()orprepare()arguments?
this statement and values

if limit and offset not prepared statement

you have 5 parameters in the first example and only 2 in a second while you are saying you replaced 2 placeholders with hardcoded text
you have 5 parameters in the first example and only 2 in a second while you are saying you replaced 2 placeholders with hardcoded text
wait i miss to show 3 parameters
oh right, I see you also removed like ? from the second example so it adds up
oh right, I see you also removed
like ?from the second example so it adds up
yes right
I think the error is somewhere in the and concat part. Try to put it on a separate line ( and also add a space and ?and => and ? ) and :
#...start of your query
and (createdDate between ? and ?)
and (concat(...) like ?)
#... order by + limit + offset
I think the error is somewhere in the
and concatpart. Try to put it on a separate line ( and also add a spaceand ?and=>and ? ) and:#...start of your query and (createdDate between ? and ?) and (concat(...) like ?) #... order by + limit + offset
this sample with 3 parameter without limit and offset

this if 5 parameter include limit and offset prepared statement

without concat error

without concat success

thanks for help before @sidorares
I think the error is somewhere in the
and concatpart. Try to put it on a separate line ( and also add a spaceand ?and=>and ? ) and:#...start of your query and (createdDate between ? and ?) and (concat(...) like ?) #... order by + limit + offsetthis sample with 3 parameter without limit and offset
this if 5 parameter include limit and offset prepared statement
also if using namedPlaceHolder
Success

Error

Try in dbeaver success

I'm not sure if dbeaver is using real server side prepared statements or does client side query building. More real test would be to do PREPARE command in mysql command line - https://dev.mysql.com/doc/refman/8.0/en/prepare.html
still, can u helpme ?