|
|
@@ -72,7 +72,7 @@ Executing updates returns a single value, a `BOOL`. A return value of `YES` mea
|
|
|
|
|
|
A `SELECT` statement is a query and is executed via one of the `-executeQuery...` methods.
|
|
|
|
|
|
-Executing queries returns an `FMResultSet` object if successful, and `nil` upon failure. Like executing updates, there is a variant that accepts an `NSError **` parameter. Otherwise you should use the `-lastErrorMessage` and `-lastErrorCode` methods to determine why a query failed.
|
|
|
+Executing queries returns an `FMResultSet` object if successful, and `nil` upon failure. You should use the `-lastErrorMessage` and `-lastErrorCode` methods to determine why a query failed.
|
|
|
|
|
|
In order to iterate through the results of your query, you use a `while()` loop. You also need to "step" from one record to the other. With FMDB, the easiest way to do that is like this:
|
|
|
|