Predefined Constants


Functions that return an array of results can take an optional result_type argument to determine what type of array is created. These are the valid constants:

  • SQLITE_ASSOC causes the array to use the string type column name as the array index.

  • SQLITE_NUM causes the array to use a numerical index starting from zero for each column in the result.

  • SQLITE_BOTH causes the array to use both string and numerical keys.

If no constant is specified, SQLITE_BOTH is assumed.



    SQLite
    SQLite
    ISBN: 067232685X
    EAN: 2147483647
    Year: 2004
    Pages: 118
    Authors: Chris Newman

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net