mcorega / MySqlSwiftNative

MySQL Swift Native Driver
Other
112 stars 45 forks source link

Select Statement #33

Closed mikem011 closed 6 years ago

mikem011 commented 6 years ago

I am attempting to query a table for the MAX() of a field. I would like to execute the following select statement: SELECT MAX(id) FROM

I am preparing the select statement like this: let select_stmt = try con.prepare("SELECT MAX(id) FROM students")

How would execute this statement using the query function?