标题:请教一个sql语法
只看楼主
hytizj023
Rank: 1
等 级:新手上路
帖 子:166
专家分:7
注 册:2023-3-2
结帖率:100%
已结贴  问题点数:20 回复次数:2 
请教一个sql语法

tongji="lingling,lingyi,linger,lingsan,lingsi,lingwu,lingliu,lingqi,lingba,lingjiu,"+;
"shiyi,shier,shisan,shisi,shiwu,shiliu,shiqi,shiba,shijiu,ershier,ershisan,ershisi,"+;
"ershiwu,ershiliu,ershiqi,ershiba,ershijiu,sanshisan,sanshisi,sanshiwu,sanshiliu,"+;
"sanshiqi,sanshiba,sanshijiu,sishisi,sishiwu,sishiliu,sishiqi,sishiba,sishijiu,"+;
"wushiwu,wushiliu,wushiqi,wushiba,wushijiu,liushiliu,liushiqi,liushiba,liushijiu,"+;
"qishiqi,qishiba,qishijiu,bashiba,bashijiu,jiushijiu"

sqlexec(nHandle,"select tongji from 历史统计双飞","历史统计双飞")&&这句有错,请教该怎么写
搜索更多相关主题的帖子: select sql 统计 历史 语法 
2023-04-09 15:57
csyx
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:29
帖 子:484
专家分:1827
注 册:2018-3-13
得分:20 
sqlexec(nHandle,"select ' + tongji + ' from 历史统计双飞","历史统计双飞")
2023-04-09 17:21
hytizj023
Rank: 1
等 级:新手上路
帖 子:166
专家分:7
注 册:2023-3-2
得分:0 
以下是引用csyx在2023-4-9 17:21:06的发言:

sqlexec(nHandle,"select ' + tongji + ' from 历史统计双飞","历史统计双飞")

是"+tongji+"
感谢
2023-04-09 17:47



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-511846-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012063 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved