SQL-具有单列的内部联接表

时间:2018-10-10 20:21:12

标签: inner-join

我有2个表,表A的一列的值为1,1,1,2,2,3,表B的一列的值为1,2,3。表A和表B的$(function () { console.log('jQuery is working.') updateBillingSection(); $('select').on('change', function() { updateBillingSection(); }); function updateBillingSection() { // (1) If the plan is not of type=BUSINESS or INDIVIDUAL, hide the billing section var INDIVIDUAL_PLAN = "INDIVIDUAL"; var BUSINESS_PLAN = 'BUSINESS' var paidPlans = [INDIVIDUAL_PLAN, BUSINESS_PLAN] var planType = $('select[name="plan_type"] option:selected').val(); console.log('Plan type: ' + planType); if(paidPlans.includes(planType)) { $('.paid-plan-details').show("slow"); } else { $('.paid-plan-details').hide("slow"); } } } 的输出是什么?

1 个答案:

答案 0 :(得分:0)

INNER JOIN将与指示的列的值匹配,并且仅返回找到匹配项的行。

在上面的示例中,结果表将包含值1,1,1,2,2,3-这是因为INNER JOIN已找到表A的每个值的匹配项。 / p>