社区
数据库相关
帖子详情
如何将类似select * from :DB.Table 加入TQuery?
sdzeng
2004-07-28 03:16:27
由于TQuery在识别Params时将:DB.Table认为是参数,而不是DB,
请教大家,如何才能使它正确识别参数?
不要告诉我用Formart函数哦?
...全文
113
5
打赏
收藏
如何将类似select * from :DB.Table 加入TQuery?
由于TQuery在识别Params时将:DB.Table认为是参数,而不是DB, 请教大家,如何才能使它正确识别参数? 不要告诉我用Formart函数哦?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
dh9450
2004-07-28
打赏
举报
回复
用ACSII码
thiswang
2004-07-28
打赏
举报
回复
由于SQL语法中“:”后就是参数,所以你只能这么用。
你的SQL用法我不太清楚(本例的意思我就不太明白),请写得更详细些。
wychero
2004-07-28
打赏
举报
回复
同意aiirii(ari-爱的眼睛) ,用 Format 吧。
GoldShield
2004-07-28
打赏
举报
回复
用全文检索吧.能找到的
aiirii
2004-07-28
打赏
举报
回复
就我所知, 只能用format 或直接 + TblName 這樣的方法,
這個問題以前討論過多次了
Delphi7.1 Update
Index Open Tools API (IOTA)=d7iota.hlp Save the d7.ohi file and delete any hidden *.GID files in your Delphi7/Help folder before restarting the Help. This modification reduces the number of index ...
RxLib控件包内含RxGIF,全部源码及DEMO
being retrieved from an indexed
table
. When the user
select
s the T
DB
IndexCombo component, it's drop-down
select
ion list is populated with the DisplayNames of all indexes available for the
table
it's ...
Absolute Database for D7
‘) Parameters in queries
SELECT
from several databases in one query Correlated and non-correlated subqueries Compactness Small size of code added into the application by the database engine units ...
SQL /数据库 使用蓝皮书
例4:
select
* from student where class in (
select
class from student where name='陈小小') (2)INSERT插入语句 语法:INSERT INTO <表名> [(<字段名1> [,<字段名2>, ...])] VALUES (<常量1> [,<常量2>, ...
在Delphi中动态地使用SQL查询语句
在Delphi中,使用SQL查询语句的途径是:在窗体中置入
TQuery
构件,设置其 SQL属性的内容值,此内容为一个字符串数组,数组的每个值对应一行SQL查询语句。 可以在程序设计过程中事先指定,也可以在程序运行中重新赋值,...
数据库相关
2,497
社区成员
88,445
社区内容
发帖
与我相关
我的任务
数据库相关
Delphi 数据库相关
复制链接
扫一扫
分享
社区描述
Delphi 数据库相关
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章