Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
具体来说,在我准备好的陈述中,我可以做类似的事情:
... LIMIT IFNULL(?,1000)
意思是,使用作为参数传入的限制,但如果作为 null 传递,使用 1000?
到目前为止,我的实验似乎表明一个函数不能用于LIMIT.
LIMIT