Postgresql修改序列方法 select setval('dataset_id_seq',1,false);
2013-12-27 11:21
423 查看
alter sequence dataset_id_seq start with 1 ; --只能增大 不能减小
select setval('dataset_id_seq',1,false); --从1开始
select setval(pg_get_serial_sequence('dataset', 'id'),1); --从2开始
select setval('dataset_id_seq',1,false); --从1开始
select setval(pg_get_serial_sequence('dataset', 'id'),1); --从2开始
相关文章推荐
- Field 'id' doesn't have a default value问题解决方法
- 解决Incorrect integer value: '' for column 'id' at row 1的方法
- 织梦DEDECMS修改下载地址{dede:field name=\'softlinks\'/}格式方法
- Field 'id' doesn't have a default value问题解决方法
- 解决Incorrect integer value: '' for column 'id' at row 1的方法
- 解决Incorrect integer value: '' for column 'id' at row 1的方法
- Your content must have a ListView whose id attribute is 'android.R.id.list' 解决方法
- 解决Incorrect integer value: '' for column 'id' at row 1的方法
- coreseek(sphinx)错误:WARNING: attribute 'id' not found - IGNORING原因及解决方法
- Field 'id' doesn't have a default value问题解决方法
- [解决方法]org.dbunit.dataset.NoSuchTableException: Did not find table 'tab1' in schema 'null'
- coreseek(sphinx)错误:WARNING: attribute 'id' not found - IGNORING原因及解决方法
- 解决Incorrect integer value: '' for column 'id' at row 1的方法
- 解决Load Data infile时Incorrect integer value: '' for column 'id' at row 1的方法
- 3.0 的 U方法 {:U('/Index/Content/id/'.$Ts[0]['list'][0]['id'])}
- Android Studio: Plugin with id 'android-library' not found 解决方法
- ecshop中{insert name='history'}修改方法
- 恢复你的IE->对某些网站恶意修改的恢复方法
- No sources that matches the given name (at 'layout_toLeftOf' with value '@id/
- SQL2005无法连接到.\SQLEXPRESS,用户'sa'登录失败(错误18456)解决方法