Search
 
SCRIPT & CODE EXAMPLE
 

SQL

trigger vérifier stock

 
BEGIN
 
UPDATE `product` 
    SET `price` =  NEW.price
    , `quantity` = NEW.quantity 
    , date_modified = NOW() 
    WHERE `product_id` = NEW.product_id;
    AND price > NEW.price 
    AND quantity > 0
;
 
END
Comment

PREVIOUS NEXT
Code Example
Sql :: nth max in my sql 
Sql :: drop-toys-table 
Sql :: c# sql transaction multiple connections 
Sql :: postgres call view 
Sql :: SQL LEFT JOIN With AS Alias 
Sql :: sql find gaps in date ranges 
Sql :: sql query for getting details by id 
Sql :: select-groups-of-row-only-having-specific-value 
Sql :: Table aliases 
Sql :: how to create a table from another table in sql derby 
Sql :: list foreign user mapping postgres 
Sql :: sql case 1 add a string 
Sql :: mysql make date from 2 column 
Sql :: tsql find the value and count of the item that occurs the most in a column 
Sql :: oarcale list objects 
Sql :: To access SQL database file 
Sql :: how to change the field size of an existing column 
Sql :: custom row number 
Sql :: How to Group by and concatenate arrays with all columns in PostgreSQL 
Sql :: database schema for mcqs type exam in sql 
Sql :: How to query data in many to many relationship in flask sql alchemy 
Sql :: primary key in sql 
Sql :: oracle find constraints referencing a table 
Sql :: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.8.0. 
Sql :: fatal database postgres does not exist 
Sql :: python connect to mysql in settings.py 
Csharp :: reload scene unity 
Csharp :: c# get executable path 
Csharp :: how to detect mouse click in c# 
Csharp :: dictionary namespace c# 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =