--select num (_id) from catp where repetNum >0 查询符合条件的_id最大值
select count(_id) from catp where _id>10 查询符合条件的_id数量
添加字段
alter
table
表名
add
字段名 字段类型;
删除一个字段
alter
table
表名
drop
column
字段名;
一、SQL中新增列或者说添加字段的语法: alter table 表名 add 列名 数据类型 二、例如:在表texttable中添加一列字符型字段colnew: alter table texttable add colnew char(20)三、添加的新列,默认值为空值NULL