Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql BEFORE UPDATE INSERT

drop trigger if exists history;
delimiter //
CREATE TRIGGER history
BEFORE UPDATE ON table_name
FOR EACH ROW 
	BEGIN
    INSERT INTO his_table(numer, data, ilosc)
        VALUES(old.numer, old.numer, old.ilosc);
    END;
    //
Comment

PREVIOUS NEXT
Code Example
Sql :: ring get column value from the fetched row using the odbc_getdata() 
Sql :: postgresql display subquery as json 
Sql :: today midnight SQL 
Sql :: SQLAlchemy query to return only n results? 
Sql :: Pattern matching alternative sql 
Sql :: SQL Creating a Table to Store Date and Time 
Sql :: postgres sum substract stackoverflow 
Sql :: Xampp resolve mysql issue 
Sql :: sql redshift split into first and last name 
Sql :: Mysql get routine parameter list 
Sql :: Call to undefined function mysql_query() in D:xampphtdocsimageindex.php:11 Stack trace: #0 {main} thrown in site:stackoverflow.com 
Sql :: including parameters in OPENQUERY 
Sql :: inner join multiple conditions 
Sql :: oracle transaction rollback not working 
Sql :: SQL Deleting a View 
Sql :: dependent on column 
Sql :: connecting mySQL to STS 
Sql :: the primary key is selected from the 
Sql :: oracle index hint multiple tables example 
Sql :: mysql find the row ites of the hoghest value at on column 
Sql :: convert varchar to time sql 
Sql :: how to delete data from database in php 
Sql :: delete duplicate data from table 
Sql :: tsql utf to local time 
Sql :: luu ckeditor vao mysql 
Csharp :: unity load current scene 
Csharp :: regions unity 
Csharp :: disappear after time unity 
Csharp :: import C++ into C# 
Csharp :: kotlin random number 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =