摘要: 循环批量插入数据的SQL语句: insert into A(CuisID,StoID) select 数据值, StoID from B where StoID not in (select StoID from A) 阅读全文
posted @ 2011-08-17 13:20 jake2011 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 把自身ID与下级数据ID 放到一个集合列表中 Select AreaID from Area where PrentID=@CityId union select AreaID=@CityId 阅读全文
posted @ 2011-08-17 10:01 jake2011 阅读(206) 评论(0) 推荐(0) 编辑