【发布时间】:2014-10-12 23:16:45
【问题描述】:
我在 SQLite 中有一个表
create table table_dishes (_id integer primary key autoincrement,
title text,
price real,
weight real,
description text,
position integer);
如何使字段“位置整数”自增?
【问题讨论】:
-
签出THIS
-
你为什么需要这个?你可以认为位置值是_id值,或者如果你想不相等,你可以看到像_id + 1