当前位置: 代码迷 >> Sql Server >> 求条简单的查询语句!解决方案
  详细解决方案

求条简单的查询语句!解决方案

热度:50   发布时间:2016-04-27 16:44:09.0
求条简单的查询语句!
我有这样一张表

表   tab_dept_type

dept_type_id         dept_type
            0                       学校
            1                       学工组
            2                       饭堂


我想向表里插入     年级组   这个部门类型
插入之后这样
dept_type_id         dept_type
            0                       学校
            1                       学工组
            2                       饭堂
            3                       年级组


因为我的id不是自增的!


------解决方案--------------------
这样?
insert into tab_dept_type(dept_type_id,dept_type)
select 3, '年级组 '
  相关解决方案