Changes between Version 50 and Version 51 of Docs/Prog/Manual/ApplicationLibraries/lib825db


Ignore:
Timestamp:
01/20/26 15:06:34 (13 days ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825db

    v50 v51  
    140140}}}
    141141
    142 The following example shows creating a table with an integer primary key that auto increments. The keyword is AUTO_INCREMENT in MySQL and AUTOINCREMENT in SQLite. Also note that MySQL will give an error without the AUTO_INCREMENT keyword when INSERT INTO is attempted if "id" is not supplied. SQLite does not require the AUTOINCREMENT keyword for an INTEGER PRIMARY KEY field. SQLite will automatically supply a rowid value for the primary key when INSERT INTO is performed. However, when AUTOINCREMENT is not used the SQLite may reuse rowid values from deleted rows. (This can be problematic in some cases.)
     142The following example shows creating a table with an integer primary key that auto increments. The keyword is AUTO_INCREMENT in MySQL and AUTOINCREMENT in SQLite. Also note that MySQL will give an error without the AUTO_INCREMENT keyword when INSERT INTO is attempted if "id" is not supplied. SQLite does not require the AUTOINCREMENT keyword for an INTEGER PRIMARY KEY field. SQLite will automatically supply a rowid value for the primary key when INSERT INTO is performed. However, when AUTOINCREMENT is not used SQLite may reuse rowid values from deleted rows. (This can be problematic in some cases.)
    143143{{{#!c++
    144144string sql;