我希望你能帮助我。这是我正在尝试执行的一些SQL代码。
create table Personne (
id_personne serial primary key,
nom text not null,
prenom text not null,
email text not null);
create table Ressource (
id_ressource serial primary key,
nom_r text not null,
url text not null,
id_personne int not null, foreign key references Personne(id_personne));
我收到类似“附近的语法错误'引用Personne(id_personne))'第5行的错误。
我不知道它来自哪里。我去了W3school.com,根据我的理解,我写的是正确的。但它只是不起作用。
任何形式的帮助都将不胜感激!
PS:我试过MySql和Postgresql,结果相同。
答案 0 :(得分:1)
您忘记了列名
$($this).on('swipeleft', function(event) {
scrollToNext();
});
$($this).on('swiperight', function(event) {
scrollToPrevious();
});