mcorega/MySqlSwiftNative

Select Statement

Closed this issue · 0 comments

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 <table_name>

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?