摘要:
假设在数据库里面有一个名为 news 的数据表,添加一条记录的存储过程如下:CREATE PROCEDURE AddNews @id int, @title nvarchar(200), @content nvarchar(4000), @publishtime datetime, @replies intAS insert news (id,title,content,publishtime,replies) values (@id,@title,@content,@publishtime,@replies)访问数据库的代码如下:string source = "server=16 阅读全文