,又学了点关于存储过程的知识
update数据库表--存储过程CREATE PROCEDURE HVC_ChatRoom_UpdateTopic
update数据库表--存储过程    (
update数据库表--存储过程        
@topic_id int,
update数据库表--存储过程        
@title nvarchar(255),
update数据库表--存储过程        
@summary nvarchar(2000),
update数据库表--存储过程        
@time datetime,
update数据库表--存储过程        
@guests nvarchar(255),
update数据库表--存储过程        
@imgurl nvarchar(255)
update数据库表--存储过程    )
update数据库表--存储过程    
AS
update数据库表--存储过程    
UPDATE HVC_ChatRoom_TopicsList
update数据库表--存储过程    
SET
update数据库表--存储过程
update数据库表--存储过程        inTitle 
= @title,
update数据库表--存储过程        inSummary 
= @summary,
update数据库表--存储过程        inGuests 
= @guests,
update数据库表--存储过程        inTime 
= @time,
update数据库表--存储过程        inImgUrl 
= @imgurl    
update数据库表--存储过程    
WHERE TopicId = @topic_id
update数据库表--存储过程
update数据库表--存储过程    
GO
update数据时一定要把数据item的类型和长度写清楚,要是不写长度,系统会默认只取第一个字符。
数据的类型和长度要和当初建表时定义的类型长度一致。

相关文章: