Jump to content




Maximum length of a SQL statement in FQL



  • Please log in to reply
7 replies to this topic

#1 OFFLINE   David Wikström  enthusiast

David Wikström
  • Members
  • 59 posts
  • FM Client:12 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Certification:8, 9, 10, 11
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 15h 45m 10s

Posted 14 February 2012 - 06:55 AM

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?
David Wikström
FileMaker 11/10/9/8 Certified Developer
CamelCase data
Heidelberg, Deutschland | Vancouver, BC, Canada
david.wikstrom@camelcasedata.com
www.camelcasedata.com

#2 OFFLINE   Tim Anderson  newbie

Tim Anderson
  • Members
  • 60 posts
  • FM Client:12 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Certification:9, 11
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 13h

Posted 17 February 2012 - 03:19 PM

I'm guessing, as it will be in a calculation, 30,000 characters in total

#3 OFFLINE   David Wikström  enthusiast

David Wikström
  • Members
  • 59 posts
  • FM Client:12 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Certification:8, 9, 10, 11
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 15h 45m 10s

Posted 18 February 2012 - 01:26 AM

That's what I would have though too, but I actually tried some 34,000 and it still worked...
David Wikström
FileMaker 11/10/9/8 Certified Developer
CamelCase data
Heidelberg, Deutschland | Vancouver, BC, Canada
david.wikstrom@camelcasedata.com
www.camelcasedata.com

#4 OFFLINE   Tim Anderson  newbie

Tim Anderson
  • Members
  • 60 posts
  • FM Client:12 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Certification:9, 11
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 13h

Posted 19 February 2012 - 08:31 AM

Wow, some length of SQL statement!

#5 OFFLINE   David Wikström  enthusiast

David Wikström
  • Members
  • 59 posts
  • FM Client:12 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Certification:8, 9, 10, 11
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 15h 45m 10s

Posted 20 February 2012 - 03:57 AM

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
FileMaker 11/10/9/8 Certified Developer
CamelCase data
Heidelberg, Deutschland | Vancouver, BC, Canada
david.wikstrom@camelcasedata.com
www.camelcasedata.com

#6 OFFLINE   David Wikström  enthusiast

David Wikström
  • Members
  • 59 posts
  • FM Client:12 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Certification:8, 9, 10, 11
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 15h 45m 10s

Posted 23 February 2012 - 07:58 AM

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).
David Wikström
FileMaker 11/10/9/8 Certified Developer
CamelCase data
Heidelberg, Deutschland | Vancouver, BC, Canada
david.wikstrom@camelcasedata.com
www.camelcasedata.com

#7 OFFLINE   Tim Anderson  newbie

Tim Anderson
  • Members
  • 60 posts
  • FM Client:12 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Certification:9, 11
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 13h

Posted 24 February 2012 - 10:19 AM

Interesting. Don't suppose you plan on continuing testing to see how long the statement can be? :smile3:

#8 OFFLINE   David Wikström  enthusiast

David Wikström
  • Members
  • 59 posts
  • FM Client:12 Advance
  • Platform:Cross Platform
  • Skill Level:Expert
  • Certification:8, 9, 10, 11
  • Membership:TechNet, FileMaker Business Alliance
  • Time Online: 15h 45m 10s

Posted 25 February 2012 - 12:58 AM

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.
David Wikström
FileMaker 11/10/9/8 Certified Developer
CamelCase data
Heidelberg, Deutschland | Vancouver, BC, Canada
david.wikstrom@camelcasedata.com
www.camelcasedata.com


Back to FQL - Internal SQL


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

FMForum Advertisers