insert table1
select '456', field2, ... from table1 where field1='123'
select '456', field2, ... from table1 where field1='123'
解决方案 »
- 数据库设计问题,动态的生成表怎么审计
- 请问一个简单的事务怎么写啊!!
- SSRS 中如何让表头动态显示,请各位大侠帮忙看看,小女子不胜感激!
- 求sql2000触发器设置单据itemno
- 一个简单查询问题?求教
- sql server 2008 无法连接到远程服务器
- 邹大哥请进,如何用Sql语句分解12:0216:2419:5801:12为长度为5日期字符串!
- 如何利用SqlDMO生成一个存储过程的Alter脚本
- 为什么MSDE2000在98下装不上
- 我问一个深一点的问题,关于数据库的。。。
- 请问如何在指定的位置插入一条或一批纪录??
- ID, Father, Name 三个字段 已知一个ID, 查所有跟他一个father的ID 请问怎么写
select '456', field2, ... from table1 where field1='123'呵呵.
select '456' from table1 where field1='123'
create procedure yuorproc
(@fValue char(3))
as
insert table1
select '456', field2, ... from table1 where field1=@fValue
go调用:
exec yuorproc '456'
select '456', field2, ... from table1 where field1='123'
呵呵