sql语句

来源:互联网 发布:淘宝首页设计欣赏 编辑:程序博客网 时间:2024/05/17 22:41
alter table person add balence integer; --修改表
create table person (id integer primary key autoincrement, name varchar(20));  --创建表
SELECT id, name, balance FROM person LIMIT ?,?", new String[]{offset , len}

SELECT * FROM table LIMIT 5,10;  // 检索记录行 6-15

//为了检索从某一个偏移量到记录集的结束所有的记录行,可以指定第二个参数为 -1:SELECT * FROM table LIMIT 95,-1;

//返回前5行数据  SELECT * FROM table LIMIT 5;
0 0
原创粉丝点击