sqlserver將查詢結果插入數據庫

兩張完全一樣得表,其中tab_use存在 tab_xin不存在
一.select userID,userPassword,userName,userSex,depts,major,Classes into tab_xin from tab_user where identitys= '學生';

二.INSERT INTO tab_selected SELECT 課程名稱,教師,學分,班級名稱,周次,節次,地點,備註 FROM SelectCourse WHERE 教師='[5535]張建林';

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章