找回密码

火车采集器软件交流官方论坛

搜索
火车采集器V9版免费下载火车浏览器 - 可视采集,万能群发,全自动脚本工具
查看: 3368|回复: 5

能不能做到支持变量的SQL导入呢(可加钱)

[复制链接]
发表于 2008-6-5 10:25:30 | 显示全部楼层 |阅读模式
DECLARE   @val   nvarchar(100)   
SET   @val   =   CHAR(13)+CHAR(10)+'aaaa'
DECLARE   @ptr  binary(16)
declare @n int
select @n=open from tableA where id='1'
if(@n=0)
begin
update tableA set address='aaaa',open=1 where id='1'
end
else
begin
select   @ptr=textptr(address)   from tableA where id='1'
UPDATETEXT   tableA.address @ptr  null 0 @val
end
 楼主| 发表于 2008-6-5 10:26:45 | 显示全部楼层
可以的话联系我14894483QQ
发表于 2008-6-5 11:37:16 | 显示全部楼层
理论上是没问题的。有点繁琐。价格如何?
 楼主| 发表于 2008-6-5 14:12:51 | 显示全部楼层
你是??
 楼主| 发表于 2008-6-5 14:18:05 | 显示全部楼层
DECLARE   @ptr  binary(16)
if((select open from tableA where id='5928')=0)
update tableA set address='aaaa',mo_open=1 where id='5928'
else
select   @ptr=textptr(address)   from tableA where id='5928'
UPDATETEXT   tableA.address @ptr  null 0 'aaaa'


现在我简化到这样,但还是提示有错!~~~

出现错误 tableA表1-错误信息:-1
发表于 2016-2-10 02:52:03 | 显示全部楼层
爪,以后学习下。。
您需要登录后才可以回帖 登录 | 加入会员

本版积分规则

温馨提示:建议您联系官方定制服务,通过官方支付方式完成支付。您与其他非官方账号发生的交易,我方概不承担责任。网络有风险,交易需谨慎

QQ| 手机版|Archiver| 火车采集器官方站

Copyright © 2001-2013 Comsenz Inc.  Template by Comeings! All Rights Reserved.

Powered by Discuz! X3.4( 皖ICP备06000549 )

快速回复 返回顶部 返回列表