@@ -157,100 +157,90 @@ INSERT INTO "ROLES" ( "USERNAME", "ROLE" ) VALUES ( 'nacos', 'ROLE_ADMIN' );
157
157
create sequence seq_config_info;
158
158
create or replace trigger tg_config_info
159
159
--before:执行DML等操作之前触发
160
- before insert on config_info
160
+ before insert on config_info
161
161
--行级触发器
162
- for each row
163
- begin
162
+ for each row
163
+ begin
164
164
select seq_config_info.nextval into :new.id from dual;
165
165
end;
166
166
/
167
167
create sequence seq_config_tags_relation;
168
168
create or replace trigger tg_config_tags_relation
169
169
--before:执行DML等操作之前触发
170
- before insert on config_tags_relation
170
+ before insert on config_tags_relation
171
171
--行级触发器
172
- for each row
173
- begin
172
+ for each row
173
+ begin
174
174
select seq_config_tags_relation.nextval into :new.nid from dual;
175
175
end;
176
176
/
177
177
create sequence seq_config_info_aggr;
178
178
create or replace trigger tg_config_info_aggr
179
179
--before:
180
- before insert on config_info_aggr
180
+ before insert on config_info_aggr
181
181
--行级触发器
182
- for each row
183
- begin
182
+ for each row
183
+ begin
184
184
select seq_config_info_aggr.nextval into :new.id from dual;
185
185
end;
186
186
/
187
187
create sequence seq_config_info_beta;
188
188
create or replace trigger tg_config_info_beta
189
189
--before:
190
- before insert on config_info_beta
190
+ before insert on config_info_beta
191
191
--行级触发器
192
- for each row
193
- begin
192
+ for each row
193
+ begin
194
194
select seq_config_info_beta.nextval into :new.id from dual;
195
195
end;
196
196
/
197
197
create sequence seq_config_info_tag;
198
198
create or replace trigger tg_config_info_tag
199
199
--before:
200
- before insert on config_info_tag
200
+ before insert on config_info_tag
201
201
--行级触发器
202
- for each row
203
- begin
204
- select seq_config_info_tag.nextval into :new.id from dual;
205
- end;
206
- /
207
- create sequence seq_config_info_tag;
208
- create or replace trigger tg_config_info_tag
209
- --before:
210
- before insert on config_info_tag
211
- --行级触发器
212
- for each row
213
- begin
202
+ for each row
203
+ begin
214
204
select seq_config_info_tag.nextval into :new.id from dual;
215
205
end;
216
206
/
217
207
create sequence seq_group_capacity;
218
208
create or replace trigger tg_group_capacity
219
209
--before:
220
- before insert on group_capacity
210
+ before insert on group_capacity
221
211
--行级触发器
222
- for each row
223
- begin
212
+ for each row
213
+ begin
224
214
select seq_group_capacity.nextval into :new.id from dual;
225
215
end;
226
216
/
227
217
create sequence seq_his_config_info;
228
218
create or replace trigger tg_his_config_info
229
219
--before:
230
- before insert on his_config_info
220
+ before insert on his_config_info
231
221
--行级触发器
232
- for each row
233
- begin
222
+ for each row
223
+ begin
234
224
select seq_his_config_info.nextval into :new.nid from dual;
235
225
end;
236
226
/
237
227
create sequence seq_tenant_capacity;
238
228
create or replace trigger tg_tenant_capacity
239
229
--before:
240
- before insert on tenant_capacity
230
+ before insert on tenant_capacity
241
231
--行级触发器
242
- for each row
243
- begin
232
+ for each row
233
+ begin
244
234
select seq_tenant_capacity.nextval into :new.id from dual;
245
235
end;
246
236
/
247
237
create sequence seq_tenant_info;
248
238
create or replace trigger tg_tenant_info
249
239
--before:
250
- before insert on tenant_info
240
+ before insert on tenant_info
251
241
--行级触发器
252
- for each row
253
- begin
242
+ for each row
243
+ begin
254
244
select seq_tenant_info.nextval into :new.id from dual;
255
245
end;
256
246
/
0 commit comments