DavidYun

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年9月3日

摘要: select yl_NerseName from tb_Nerse union select yl_DoctorName from tb_Doctor";//把doctor 和 nerse两个表的结果集合并为一个结果集select * into destTbl from srcTblinsert into destTbl(fld1, fld2) select fld1, 5 from srcTbl以上两句都是将 srcTbl 的数据插入到 destTbl,但两句又有区别的。第一句(select into from)要求目标表(destTbl)不存在,因为在插入时会自动创建。第二句(i 阅读全文
posted @ 2011-09-03 11:50 David.Yun 阅读(2907) 评论(0) 推荐(0) 编辑