insert into 空表 select语句
解决方案 »
- vs2005 单文档程序如何显示一幅图片?
- 如何通过itemtext取treeitem?
- CListCtrl排序问题!
- 关于驱动开发的疑问
- 一个普通文本记录有50~100万行信息,共150~250MB大。按行读取内容,用什么方案最快?[讨论]
- 提问关于Windows的几种消息原理。
- 如何知道盘符?
- 一个送分的题目,问了半天了,居然没有人回答(100)
- 怎样把项目动态连接改成静态连接,不新建项目
- 批量往excel中写入数据,在动态写的过程中无法点击单元格,如果点击就会中断写,为什么??
- 如何获得opengl 的求值器生成的值(坐标)?
- 在VC++ 2005下使用directdraw开发mobile程序如何配置编译环境啊!
select * into CC_PRESCH from 原表 where 1<>1接着复制查询返回的内容insert into CC_PRESCH (a, b, c,) select d,e,f from b; (这里是a,b,c是你选出的字段名,d,e,f是你准备插入的字段名).
from Order_Main,Order_List,Slab_Product,Steel_Grade,Steel_Mark
where Order_Main.Order_Main_No=Order_List.Order_Main_No and Order_List.Product_No=Slab_Product.Slab_No and Slab_Product.Steel_Grade=Steel_Grade.Steel_Grade and Steel_Grade.Steel_Type=Steel_Mark.Steel_Type 这句话中,你CC_PRESCH 中的字段要与select的字段属性都要一一对应,不然就会出问题!
(Slab_No,Order_List_No,Slab_Weight,Due_Data,Slab_Product.Steel_Grade,Steel_Mark,Slab_Width,Slab_Ply,Slab_Length )
select Slab_No,Order_List_No,Slab_Weight,Due_Data,Slab_Product.Steel_Grade,Steel_Mark,Slab_Width,Slab_Ply,Slab_Length
from Order_Main,Order_List,Slab_Product,Steel_Grade,Steel_Mark
where Order_Main.Order_Main_No=Order_List.Order_Main_No and Order_List.Product_No=Slab_Product.Slab_No and Slab_Product.Steel_Grade=Steel_Grade.Steel_Grade and Steel_Grade.Steel_Type=Steel_Mark.Steel_Type