Skip to main content

Questions tagged [trigger]

Procedural code automatically executed in response to a database event.

0 votes
1 answer
33 views

Overview I have the following setup using Azure PostgreSQL flexible server v17: a main database containing a certain table included in the table list for a logical replication publication a replica ...
Alexei's user avatar
  • 1,193
0 votes
0 answers
47 views

I'm working with PostgreSQL 15 and experimenting with table partitioning to improve performance. Original setup: I have two tables: tasks (parent) with ~65M rows and records (child) with ~200M ...
Cowabunga's user avatar
  • 145
0 votes
0 answers
16 views

I'm now in Apache IoTDB version 1.3.0 and want to create a simple trigger but encountering class loading issues. My trigger code: `package com.example.trigger; import org.apache.iotdb.trigger.api....
Sihan Liu's user avatar
  • 101
1 vote
0 answers
61 views

I have a database replication setup in MariaDB where the main database is replicated fully to the secondary database, and only a single table is replicated back in the opposite direction. I achieved ...
Fedor Steeman's user avatar
5 votes
1 answer
209 views

I have a trigger: AFTER INSERT OR DELETE ON cryptokeys2020 FOR EACH ROW EXECUTE FUNCTION update_domains_dnssec(); Then I: INSERT INTO cryptokeys2020 (...) SELECT ... Example: cryptokeys2020 is empty ...
KlausD's user avatar
  • 53
0 votes
1 answer
69 views

In my Postgres 15 database, I have a table with several geometric columns. I want a trigger to run on the field index_per when a specific geometric field is not null: geom_l93. I have created a ...
Leehan's user avatar
  • 205
0 votes
1 answer
102 views

Consider the following example: Create Table Test ([id] int, [value] varchar(max)) Go Create Table Test_Log ([row_id] int, [action] varchar(11), [timestamp] DateTime default GetDate(), [id] int, [...
SHR's user avatar
  • 886
11 votes
2 answers
586 views

I have 2 tables with the cascade delete rule - [dbo].[Invoices] and [dbo].[InvoiceRows]: CREATE TABLE [dbo].[Invoices] ( [InvoiceId] [int] IDENTITY(1,1) NOT NULL, --other columns ...
mrigrek74's user avatar
  • 113
1 vote
1 answer
59 views

Using MySQL, for the Staff (User) table, I am using the triggers (Before Insert and Before Update) to encrypt the passwords that are saved. Is there anything wrong with this approach?
Rohit Gupta's user avatar
  • 2,168
0 votes
0 answers
50 views

I have table: blocks: id integer not null primary key, ref_date date not null, seq_no integer not null, lk_document integer not null there can be multiple records for each lk_document and all those ...
TomR's user avatar
  • 101
0 votes
2 answers
277 views

I have a problem with trigger which produces the following error message Trigger returned a resultset and/or was running with SET NOCOUNT OF The trigger is structured like this: CREATE TRIGGER ...
ventiseis's user avatar
  • 103
-1 votes
2 answers
85 views

I have this trigger as a test. It has to do a lot more. It compiles/saves fine. But when I insert a row, I get an error #1630 - FUNCTION databasename.SUBSTRING does not exist. Check the 'Function ...
Rohit Gupta's user avatar
  • 2,168
0 votes
0 answers
30 views

A social security organization wishes to develop an application to manage patients, their attending a generalist, and specialist doctors. A person is either a beneficiary or a doctor; a doctor can ...
NGANGO YVES's user avatar
0 votes
1 answer
58 views

I tried to create a system which changes the number of replicas in Postgres based on system metrics - latency, I/O operations, read/write frequency and CPU usage. I know that those metrics are ...
Jan Rajczyk's user avatar
3 votes
6 answers
676 views

The answer in this post is pretty much what I did to get my problem: SQL Server trigger before insert or update depend on value I have a CUSTOMER table that has multiple triggers attached. One of ...
user avatar

15 30 50 per page
1
2 3 4 5
102