David Wikström Posted February 14, 2012 Posted February 14, 2012 Does anybody know the what the maximum length of a SQL statement in FQL is? Is there indeed a specific limit, or does it depend on system resources?
Tim Anderson Posted February 17, 2012 Posted February 17, 2012 I'm guessing, as it will be in a calculation, 30,000 characters in total
David Wikström Posted February 18, 2012 Author Posted February 18, 2012 That's what I would have though too, but I actually tried some 34,000 and it still worked...
David Wikström Posted February 20, 2012 Author Posted February 20, 2012 Well, it's actually a real-life scenario, not just me inventing stuff for fun (which does happen). I'm doing a select "IN" on a list of 13-digit ISBNs, and that list can contain the ISBNs for thousands, even tens of thousands of book titles. Not necessarily the best way of doing what I'm doing, but it got me thinking about this question. And it actually works pretty well, considering... If there is a limit, I'd like to have a check on the length before I run the statement so the user can get a more specific error message than just "Error".
David Wikström Posted February 23, 2012 Author Posted February 23, 2012 For anyone following this, I can let you know that I just ran a SQL statement that was 458,215 characters long. Worked like a charm, as long as you're patient (8 minutes).
Tim Anderson Posted February 24, 2012 Posted February 24, 2012 Interesting. Don't suppose you plan on continuing testing to see how long the statement can be? :smile3:
David Wikström Posted February 25, 2012 Author Posted February 25, 2012 Depends on my client. If their company keeps growing, I probably will! Though in real life, I'm going to implement at the very least a severe warning to the user once the statement includes a more than a couple of thousand ISBNs.
Recommended Posts
This topic is 5001 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now