我目前正在尝试编写一个 Autohotkey 命令,该命令粘贴 SQL 代码,但我只收到此消息:
第 3 行出现错误。行文本:创建表 #tmp (
错误:此行不包含可识别的操作。
脚本没有重新加载;旧版本仍然有效。
此消息还有一些变体。
我已经尝试过使用 SendRaw 或 SendInput。即使转义字符 ´ 也不起作用。也不将其放在引号中。我已经没有任何线索了。
:*:sql::
(
--drop table #tmp
Create table #tmp (
Refnr int identity (1,1) not null,
row1 varchar(8000) null,
number int null
)
insert into #tmp (row1, number)
select top 20 row1, count(*) from tableA
group by row1
order by 2 desc
select * from #tmp order by 3 desc
)
好吧,我希望它发送 SQL 语句,但我只是收到了与上面类似的错误。有时它指的是“Create Table #tmp(”)行,有时指“insert into #tmp (row1, number)”。我不知道该怎么办。 有谁有线索并可以帮助我吗?
您需要注意右括号/圆括号。您可以使用反引号 ` 字符来转义文本中的字符。
例如:
:*:sql::
(
--drop table #tmp
Create table #tmp (
Refnr int identity (1,1) not null,
row1 varchar(8000) null,
number int null
`)
insert into #tmp (row1, number)
select top 20 row1, count(*) from tableA
group by row1
order by 2 desc
select * from #tmp order by 3 desc
)
Hola talvez me puedan ayudar 阿卡 ;确认地毯不存在并创建必要的东西 if !FileExist(rutaCarpetaMensajes) DirCreate,mensajesconfig.txt
我的骰子错误:Dircreate,此操作无法识别...请帮忙