摘要: 在dwz的dialog中进行批量操作的代码为:<li><a title="确定吗?" target="selectedTodo" rel="staffId" postType="string" href="<?php echo site_url('salary/appendStaffsToTemplate') ?>" class="add"><span>批量加入职工</span></a>& 阅读全文
posted @ 2013-02-21 11:33 kelite 阅读(1621) 评论(1) 推荐(0) 编辑
摘要: 方法有两种:1.alter table tbname auto_increment = x ;设置表tbname的唯一auto_increment字段起始值从x开始,如果此表数据量很多的话,这样执行起来会很慢。2.truncate table_name ;直接清空所有数据,下次插入数据时auto_increment字段会自动从0开始。而delete from tbname不同的是delete只删除数据而不重置auto_incremnet. 阅读全文
posted @ 2013-02-21 00:32 kelite 阅读(475) 评论(0) 推荐(0) 编辑