SQL语句 insert - .NET技术 / C#
将现有表中的数据,添加到没有创建的另一个表
怎么都得创建一个临时表吧,要不然insert都不找不到操作对象的!
create table newtable(字段1,字段2,字段3...)
insert into newtable
select 字段1,字段2,字段3...
from oldtable
先将以前的表生成脚本语言,然后再查询分析器中运行脚本语言,再insert进去就行 或者直接用导入导出将原先表的数据导入到新表中就可以了
创建之前先删除
create table newtable(字段1,字段2,字段3...)
insert into newtable
select 字段1,字段2,字段3...
from oldtable
??--这次不短了吧
相关问答:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
如何在SQL2005中设定定时作业,比如说定时清理某些表的数据,
或者是定时的将某些表的数据导出excel!
在线等待,急急急,最好是详细步骤!
之前我做的作业有点问题!
帮UP
参考:http://hi.baidu.com/toiota ......
我用XmlDocument生成XML
XmlElement remarkNode = node.OwnerDocument.CreateElement("remark");
remark1Node.InnerXml = "";
如果InnerXml赋值不为空,则生成的标记是没问题的,比如:<r ......
我想查询出每天数据的最大的一个值。表的格式如下
表名: hisdata
字段 编号 值 状态 时间
Id value state dattime
101 32.3 0 ......
请教高手:
以下是数据库中的三条记录,英文为字段名称
id planname TaskBeginTime Status
329 2010年03 ......