sqlite
數(shù)據(jù)庫(kù);使用;嵌入式關(guān)系數(shù)據(jù)庫(kù)
autoincrement
英 [?:'t??nkr?m?nt]? ?美 [?:'t??nkr?m?nt]??
n.自動(dòng)增量
SQLite Autoincrement函數(shù) 語(yǔ)法
作用:SQLite 的?AUTOINCREMENT?是一個(gè)關(guān)鍵字,用于表中的字段值自動(dòng)遞增。我們可以在創(chuàng)建表時(shí)在特定的列名稱(chēng)上使用?AUTOINCREMENT?關(guān)鍵字實(shí)現(xiàn)該字段值的自動(dòng)增加。關(guān)鍵字?AUTOINCREMENT?只能用于整型(INTEGER)字段。
語(yǔ)法:AUTOINCREMENT?關(guān)鍵字的基本用法如下:
CREATE?TABLE?table_name(
???column1?INTEGER?AUTOINCREMENT,
???column2?datatype,
???column3?datatype,
???.....
???columnN?datatype,
);
SQLite Autoincrement函數(shù) 示例
rree