这是我第一次使用INNER JOIN
(function(){
'use strict';
// define controller
var controllerId = "siteInfo";
angular.module('app').controller(controllerId,
[ 'common', 'datacontext', 'spContext', siteInfo]);
function siteInfo( common, datacontext, spContext) {
var vm = this;
init();
function init(){
initializePeoplePicker('peoplePickerDiv'); }
// setup the people picker
function initializePeoplePicker(peoplePickerElementId) {
// set config options on the people picker
var schema = {};
schema['PrincipalAccountType'] = 'User';
schema['SearchPrincipalSource'] = 15;
schema['ResolvePrincipalSource'] = 15;
schema['AllowMultipleValues'] = false;
schema['MaximumEntitySuggestions'] = 50;
schema['Width'] = '280px';
// Render and initialize the picker.
SPClientPeoplePicker_InitStandaloneControlWrapper(peoplePickerElementId, null, schema);
}
}
}();
我得到的错误是:
SELECT `xxx_storage.*`, `xxx_foods.*` FROM xxx_storage INNER JOIN xxx_foods ON `xxx_storage.food_id` = `xxx_foods.food_id`
答案 0 :(得分:0)
尝试删除后面的刻度:
SELECT xxx_storage.*,
xxx_foods.*
FROM xxx_storage
INNER JOIN xxx_foods
ON xxx_storage.food_id = xxx_foods.food_id
后退标记用于MySQL Reserved words,它们用于单个列,而不是它们的列表(*),因此当您使用它们来包装Table.*
时,MySQL会自动将其视为一栏。