Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在创建表时检查是否有任何字段“未定义”,然后将其更改为空格“”。就像是 -
Create Table ( Id real Primary Key, Name Text Check(*** if this field is 'undefined' then change it to ' ' ****) );
您可以为此任务创建触发器 -
create trigger insert_table_name BEFORE INSERT on table_name for each row when new.text = 'undefined' begin new.text:= ''; end;
如果您想执行其他任务,也可以在此触发器中执行。