注册 登录
编程论坛 SQL Server论坛

asp怎样在text型字段后面追加字符串

lslczq 发布于 2010-11-02 09:33, 930 次点击
网上搜索很很多教程,都不会用,谁指点一下迷津呀
conn.execute("updatetext wap_bbs.book_content  @p null 0 '123' where id=4506")
大概格式就是这样,可是中间那个@p什么意思,怎么写,谢谢
3 回复
#2
cnfarer2010-11-03 20:33
这个语句是否能真的执行,值得怀疑。
#3
tangyunzhong2010-11-04 10:15
回复 楼主 lslczq
conn.execute("updatetext wap_bbs.book_content  +@p+ null 0 '123' where id=4506")
你在这里只说 @p 怎么写,所以只给你写了上面的语句。
#4
cnfarer2010-11-04 14:46
这个地方不能用@p的表达式,这是SQL中使用的。
conn.execute("updatetext wap_bbs.book_content " & p &" null 0 '123' where id=4506")
假设p是VBScript中的一个变量。
1