Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
FM.SQL.RowCount
Queries number of rows in the result.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| FM FMSQL | 5.1 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| SQLref | The reference number returned by FM.SQL.Execute function. | $SQLRef |
Result
Returns number or error.
Description
Queries number of rows in the result.Examples
Query some values:
Set Variable [$sql; Value:MBS( "FM.SQL.Execute"; ""; "select * from Clients")]
If [MBS("IsError")]
Show Custom Dialog ["SQL error"; $sql]
Else
Show Custom Dialog ["SQL result"; "got " & MBS( "FM.SQL.RowCount"; $sql ) &" rows with each " & MBS( "FM.SQL.FieldCount"; $sql ) & " …"]
Set Variable [$r; Value:MBS( "FM.SQL.Release"; $sql )]
End If
See also
- FM.SQL.CSV
- FM.SQL.Release
- FM.SQL.Sum
- IsError
- Matrix.InsertRecordsToSQL
- Matrix.Max
- Matrix.Multiply
- Matrix.Sum
- Matrix.Text
- SQL.Execute
Example Databases
- SQL in FileMaker/ImageGallery
- SQL in FileMaker/SQL Select Container
- SQL to other databases/SQL Export
Blog Entries
- FileMaker records to XML or JSON
- Image Gallery in FileMaker using SQL
- Execute SQL in FileMaker and get back native field types
FileMaker Magazin
Created 18th April 2015, last changed 8th January 2017
FM.SQL.ReleaseAll - FM.SQL.Sum
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins