解决所有卡号问题
还没有运行的时候
点工具→在点分析查询器 运用以下命令(这样就可以把命令增加到触发器上了)
CREATE TRIGGER Exit_update ON [dbo].[TBL_Char]
AFTER UPDATE
AS
BEGIN
SET NOCOUNT ON
update TBL_Char
set FLD_MENOW = '101'
,[TBL_Char].FLD_X = '511'
,[TBL_Char].FLD_Y = '1028'
FROM Inserted
WHERE TBL_Char.FLD_NAME = Inserted.FLD_NAME and Inserted.FLD_Y='0'
end
以下命令在 查询里(没有分析哦 就查询里就可以了)
SELECT FLD_LEVEL AS Expr1, FLD_NAME AS Expr2, FLD_ID AS Expr3, TBL_Char.*
FROM TBL_Char
WHERE (FLD_NAME = '角色名) ←这里写上角色名称(对付单一角色使用)
SELECT FLD_LEVEL AS Expr1, FLD_NAME AS Expr2, FLD_ID AS Expr3, TBL_Char.*
FROM TBL_Char
WHERE (FLD_Y = '0') 查询Y坐标为0的用户 商业版发布站程序下载:发布站程序下载:
点工具→在点分析查询器 运用以下命令(这样就可以把命令增加到触发器上了)
CREATE TRIGGER Exit_update ON [dbo].[TBL_Char]
AFTER UPDATE
AS
BEGIN
SET NOCOUNT ON
update TBL_Char
set FLD_MENOW = '101'
,[TBL_Char].FLD_X = '511'
,[TBL_Char].FLD_Y = '1028'
FROM Inserted
WHERE TBL_Char.FLD_NAME = Inserted.FLD_NAME and Inserted.FLD_Y='0'
end
以下命令在 查询里(没有分析哦 就查询里就可以了)
SELECT FLD_LEVEL AS Expr1, FLD_NAME AS Expr2, FLD_ID AS Expr3, TBL_Char.*
FROM TBL_Char
WHERE (FLD_NAME = '角色名) ←这里写上角色名称(对付单一角色使用)
SELECT FLD_LEVEL AS Expr1, FLD_NAME AS Expr2, FLD_ID AS Expr3, TBL_Char.*
FROM TBL_Char
WHERE (FLD_Y = '0') 查询Y坐标为0的用户 商业版发布站程序下载:发布站程序下载:
Tags:
作者:佚名评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论