Simple question. I have a table Person. I have in it two rows:
1 Joe Doe joe.doe@ymail.com
2 Vivien Doe v.doe@gmail.com
How to write a SOCI statement, which will tell me (return) how many rows I have in my table? (Here, in my example, I have 2 rows).
To get the number of rows in an SQL table use the
count(*)function like this:To be more specific – to get the number into C++ variable use: