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.
这是我在 Navicat for mysql 中编写的以下代码。
Set @FileRef=0 FileRef:=select sum(id) from one;
这是我触发器的代码。
尝试,
DECLARE @FileRef INT; SET @FileRef:= (select sum(id) from one);