这个触发器应该怎样写,或者有没有其他更高效的方法来解决 nodinsert into [dbo].[ConsumableStatistics] (ordertime,.......)(getdate(),........) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把 OrderTime 默認值設為 getdate() , 添加資料時不用管這個欄位就行了。 CREATE TRIGGER [TRIGGER NAME] ON [dbo].[ConsumableStatistics] FOR INSERTAS update [dbo].[ConsumableStatistics] set ordertime=getdate() where 编号 in (select 编号 from inserted) 把你这个字段设置默认值为读取服务器端的时间 getdate(),每次插入数据的时候不插入这个字段就行了,没必要做出发器啊。 insert into [dbo].[ConsumableStatistics] (ordertime,.......)(getdate(),........)or 把 OrderTime 默认值 设为 getdate(),我就是这么做的 请问:文本文件怎样导入到sql server 指定的字段里? 请教一个交叉表SQL查询的问题啊 求一条SQL 如果删除注册的远程数据库服务器。 关于sql server2000 中image字段的操作问题,java语言 sql语句求助 数据库安装问题,在线等 请问,如何将FOXPRO的表导到SQL SERVER中,SQL SERVER 如何将数据导到FOXPRO中 各位高手请帮忙,数据库备份问题急!在线等! 关于统计的问题 windows 2000 server 能够安装MSDE吗?为什么我的不行 怎么把doc中的数据导入到SQL
FOR INSERT
AS update [dbo].[ConsumableStatistics] set ordertime=getdate() where 编号 in (select 编号 from inserted)
or
把 OrderTime 默认值 设为 getdate(),我就是这么做的