由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - how to do this sql query
相关主题
Please Help! ORA-00918: column ambiguously definedHELP: 如何实现 一个简单的Query
SSIS package upgrade issuea sql question
MSQuerymysql query question
One sql question help!sql 请教
ask for help with a simple query!!!How to write this query in Oracle?
How to add a blank column in a Query?Help on Oracle Query
== MySql问题 ==什么也不懂,要考个SQL Server 的证
query: in sql server 2005请教oracle sql query question
相关话题的讨论汇总
话题: query话题: columns话题: sql话题: key话题: table
进入Database版参与讨论
1 (共1页)
c*****t
发帖数: 1879
1
I am trying to implement foreign key query myself. That is, given
table S, and a set of columns (s1, .. sn) in S, check if all set of
values are in the table T and unique key columns (t1, ... t).
What's the most efficient query?
thx
n********6
发帖数: 1511
2
Cannot fully understand your question.
How about using the join?
c*****t
发帖数: 1879
3
Basically, manually check foreign key reference (rather than using
reference T(t1...tn)

【在 n********6 的大作中提到】
: Cannot fully understand your question.
: How about using the join?

B*****g
发帖数: 34098
4
why not just apply?

【在 c*****t 的大作中提到】
: Basically, manually check foreign key reference (rather than using
: reference T(t1...tn)

c*****t
发帖数: 1879
5
Because I am implementing it ...

【在 B*****g 的大作中提到】
: why not just apply?
j*****n
发帖数: 1781
6
left join
c*****t
发帖数: 1879
7
Right now my implementation was very stupidly simple. For each
record of A, I check if there is a referenced record in B. While
this is easy to code, I am wondering if there are faster approaches
for batch insertions.

【在 c*****t 的大作中提到】
: Because I am implementing it ...
1 (共1页)
进入Database版参与讨论
相关主题
请教oracle sql query questionask for help with a simple query!!!
求教如何针对这种情况进行优化How to add a blank column in a Query?
这个 Oracle SQL 语句该这么写啊?== MySql问题 ==
怎么reference temp table的columnquery: in sql server 2005
Please Help! ORA-00918: column ambiguously definedHELP: 如何实现 一个简单的Query
SSIS package upgrade issuea sql question
MSQuerymysql query question
One sql question help!sql 请教
相关话题的讨论汇总
话题: query话题: columns话题: sql话题: key话题: table