有没有模块或者DLL可以在易语言中执行类似以下cha询代码,我尝试过自带的模块或者外部模块还有DLL,基本都只能执行简单的cha询、更新和插入。但是满足不了我需求啊。。以下代码最终输出为:
Name Class cLevel MasterLevel TotalLevel
张三 0 400 100 500
李四 1 400 120 520
....(行数取决于TOP数量)
WITH CombinedLevels AS (
SELECT
c.Name COLLATE DATABASE_DEFAULT AS Name,
c.Class,
c.cLevel,
ISNULL(m.MASTER_LEVEL, 0) AS MasterLevel
FROM
Character c
INNER JOIN
MEMB_INFO mi ON c.AccountID = mi.memb___id
LEFT JOIN T_MasterLevelSystem m ON c.Name COLLATE DATABASE_DEFAULT = m.CHAR_NAME COLLATE DATABASE_DEFAULT
WHERE
mi.ServerCode = '0'
)
SELECT TOP 3
Name,
Class,
cLevel,
MasterLevel,
(cLevel + MasterLevel) AS TotalLevel
FROM
CombinedLevels
ORDER BY
TotalLevel DESC, cLevel DESC