摘要:
1.这里先准备数据库:在数据库中建立一个News数据表,字段为id,title,content2.建立用于插入news的存储过程:NewsInsert和NewsUpdate,代码如下:CREATE PROCEDURE NewsInsert @title char(200),@content text ASInsert Into News (title,content) Values (@title,'')DECLARE @ptrval binary(16)SELECT @ptrval = TEXTPTR(content) FROM News WHERE id = @@ident 阅读全文
posted @ 2014-03-20 14:44
tohen
阅读(1192)
评论(0)
推荐(0)
摘要:
--text字段增加处理--创建测试表create table test(id varchar(3),detail text)insert into testselect '001','A*B'--定义添加的的字符串declare @s_str varchar(8000),@postion intselect @s_str='*C' --要添加的字符串 ,@postion=null --追加的位置,null 加在尾部,0 加在首部,其他值则加在指定位置--字符串添加处理declare @p varbinary(16)s... 阅读全文
posted @ 2014-03-20 11:28
tohen
阅读(457)
评论(0)
推荐(0)