Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试一些东西,比如在存储过程中。但是,我收到了不正确的错误
select 语句附近的语法。
declare @var int @var=select max(id) from table1 where sname=@'XXX'
试试这个:
declare @var int select @var = max(id) from table1 where sname='XXX'
您缺少 SET 关键字,并且有一个额外的 @ 您不需要。此外,我已将 Select 命令包裹在括号中。
DECLARE @var int SET @var=(SELECT max(id) FROM table1 WHERE sname='XXX')
我在我的 php 项目中使用 TinyButStrong 正常工作:我可以用自定义文本替换部分 odt 模板文件,但现在我想在其中插入一些内容。问题是它插入了 html 代码或解释版本。
有什么解决办法吗?