Professional Documents
Culture Documents
MYSQL POSTGRE QUERIES
MYSQL POSTGRE QUERIES
Postgre:
select 'My name is X' as col1 , 10 as col2, 'Address is -XYZ location' as col3
into new_table;
mysql
desc sakila.actor;
CREATE TRIGGER upd_check AFTER INSERT ON world.city FOR EACH ROW IF NEW.population
< 0 THEN SET NEW.population = 0; END IF;
SELECT ROUND(45e-1)