Search code examples
iphoneobjective-csqlitefmdb

ResultSet Column Count in FMDB


is there any way we can get the column count from an FMResultSet row?


Solution

  • The FMResultSet implements following function:

    - (int)columnCount;
    

    However, I can barely think of any scenario where you are not aware of the column count of your query. Please do not use SELECT * (except debugging).