回复:问个SQL的问题

回答: 问个SQL的问题奉旨灌水2013-03-05 19:44:49

select pk, value from table_A

Union

(select pk, value from table_B)

所有跟帖: 

I did try this, what I got is: -奉旨灌水- 给 奉旨灌水 发送悄悄话 奉旨灌水 的博客首页 (193 bytes) () 03/05/2013 postreply 20:01:03

what I want is: -奉旨灌水- 给 奉旨灌水 发送悄悄话 奉旨灌水 的博客首页 (479 bytes) () 03/05/2013 postreply 20:07:37

开始又不说清楚,哎 -令狐冲冲- 给 令狐冲冲 发送悄悄话 (0 bytes) () 03/05/2013 postreply 20:09:15

墨索里尼总是有理,过去有理,现在有理,而且将来永远有理 -奉旨灌水- 给 奉旨灌水 发送悄悄话 奉旨灌水 的博客首页 (87 bytes) () 03/05/2013 postreply 20:13:21

这啥呀? -令狐冲冲- 给 令狐冲冲 发送悄悄话 (0 bytes) () 03/05/2013 postreply 20:14:47

这句名言出自一部阿尔巴尼亚的电影,电影的名子是《宁死不屈》。 -奉旨灌水- 给 奉旨灌水 发送悄悄话 奉旨灌水 的博客首页 (320 bytes) () 03/05/2013 postreply 20:19:59

估计你的父母都不一定看过,嘿嘿 -奉旨灌水- 给 奉旨灌水 发送悄悄话 奉旨灌水 的博客首页 (4 bytes) () 03/05/2013 postreply 20:21:09

直接用not exists 不就行了?搞的这么复杂 -令狐冲冲- 给 令狐冲冲 发送悄悄话 (0 bytes) () 03/05/2013 postreply 20:13:46

how to deal exist? 不搞的这么复杂 -奉旨灌水- 给 奉旨灌水 发送悄悄话 奉旨灌水 的博客首页 (90 bytes) () 03/05/2013 postreply 20:15:54

回复:how to deal exist? 不搞的这么复杂 -令狐冲冲- 给 令狐冲冲 发送悄悄话 (230 bytes) () 03/05/2013 postreply 20:21:46

OK, I'll try. Thanks, vielen dank.Merci, תוד&# -奉旨灌水- 给 奉旨灌水 发送悄悄话 奉旨灌水 的博客首页 (0 bytes) () 03/05/2013 postreply 20:25:40

请您先登陆,再发跟帖!