由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Import data in R
相关主题
How to write this loop SQL query?A SQL query never stop running is bothering me: help needed (转载)
How to query MS Access in command linehow to make this query
有用phpMyadmin的吗,请教有什么优化query的常用方法
Re: Recordset - I stuck! Help!oracle和XML
一个SQL query的问题帮帮忙
[转载] question about SQL in AccessHow to query a tree
[转载] Can anyone interpret this simple SQL?[转载] access问题请教
parameterized queries with no inputs怎样实现这个query
相关话题的讨论汇总
话题: import话题: sql话题: data话题: loop话题: query
进入Database版参与讨论
1 (共1页)
s******e
发帖数: 841
1
【 以下文字转载自 Statistics 讨论区 】
发信人: shawjone (保持一个良好的心态), 信区: Statistics
标 题: Import data in R
发信站: BBS 未名空间站 (Mon Jun 15 20:26:38 2009, 美东)
I have a for loop in R, in each loop, I want to import data from a database
using different selection criteria.
I know how to use SQL in R to get data with a fixed criterion, but my
criterion changes in each loop, how can I use an R variable in the SQL query
so that each time I can import different data I want?
Thanks
w*******e
发帖数: 1622
2
Dynamic SQL in SQL Server

database
query

【在 s******e 的大作中提到】
: 【 以下文字转载自 Statistics 讨论区 】
: 发信人: shawjone (保持一个良好的心态), 信区: Statistics
: 标 题: Import data in R
: 发信站: BBS 未名空间站 (Mon Jun 15 20:26:38 2009, 美东)
: I have a for loop in R, in each loop, I want to import data from a database
: using different selection criteria.
: I know how to use SQL in R to get data with a fixed criterion, but my
: criterion changes in each loop, how can I use an R variable in the SQL query
: so that each time I can import different data I want?
: Thanks

b*******y
发帖数: 447
3
in R, let a variable change, and paste its value to the query string and
submit.

database
query

【在 s******e 的大作中提到】
: 【 以下文字转载自 Statistics 讨论区 】
: 发信人: shawjone (保持一个良好的心态), 信区: Statistics
: 标 题: Import data in R
: 发信站: BBS 未名空间站 (Mon Jun 15 20:26:38 2009, 美东)
: I have a for loop in R, in each loop, I want to import data from a database
: using different selection criteria.
: I know how to use SQL in R to get data with a fixed criterion, but my
: criterion changes in each loop, how can I use an R variable in the SQL query
: so that each time I can import different data I want?
: Thanks

1 (共1页)
进入Database版参与讨论
相关主题
怎样实现这个query一个SQL query的问题
Java SQL --> resultset!![转载] question about SQL in Access
SQL question...[转载] Can anyone interpret this simple SQL?
高手请进,问个SQL问题parameterized queries with no inputs
How to write this loop SQL query?A SQL query never stop running is bothering me: help needed (转载)
How to query MS Access in command linehow to make this query
有用phpMyadmin的吗,请教有什么优化query的常用方法
Re: Recordset - I stuck! Help!oracle和XML
相关话题的讨论汇总
话题: import话题: sql话题: data话题: loop话题: query