此处的表名为cricket
,列为team
:
team
----
IND
BAN
PAK
SRI
我需要一个可以显示结果的查询:(见下表)
team_a team_b
------ ------
IND BAN
IND PAK
IND SRI
BAN PAK
BAN SRI
PAK SRI
任何人都可以帮助我吗?
答案 0 :(得分:1)
你需要一个CROSS JOIN,桌面上有一个自我加入。
<div>
<a style="font-size:30px">#abc</a>
<a style="font-size:60px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:60px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:30px">#abc</a>
<a style="font-size:30px">#abc</a></div>
诀窍是WHERE子句,它阻止加入同一个团队,因为显然IND不能播放IND。
如果您不想生成互惠的匹配对,那么将WHERE条件更改为使用less而不是相等:
@click.option('--bokeh-prefix', type=str, default=None,
help="Prefix for the bokeh app")
@click.option('--preload', type=str, multiple=True, is_eager=True,
help='Module that should be loaded by each worker process '
'like "foo.bar" or "/path/to/foo.py"')
@click.argument('preload_argv', nargs=-1,
type=click.UNPROCESSED, callback=validate_preload_argv)
def main(scheduler, host, worker_port, listen_address, contact_address,
nanny_port, nthreads, nprocs, nanny, name,
memory_limit, pid_file, reconnect, resources, bokeh,
bokeh_port, local_directory, scheduler_file, interface,
death_timeout, preload, preload_argv, bokeh_prefix, tls_ca_file,
tls_cert, tls_key):