I am using sqlite 2.8.17
installed on ubuntu lucid
( I used apt-get install sqlite
)
我有一个<代码>college的表格,我试图制作一个触发器(如dbclass.org录像中所提及的)
create trigger R4
before insert on College
for each row
when exists (select * from College where cName = New.cName)
begin
select raise(ignore);
end;
造成错误
SQL error: near "select": syntax error
专栏
create table College(cName text, state text, enrollment int);