Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Things which can be done with MYSQL instead of involving PHP [closed]

What are the must-know MYSQL functions (like IF etc..,) which every web developer should know?

like image 307
good_evening Avatar asked Dec 02 '22 04:12

good_evening


2 Answers

My favorite:

INSERT ... SELECT

It allows me to bypass heavy PHP code to fetch data from one table, manipulate it and insert into another.

like image 93
shamittomar Avatar answered May 09 '23 03:05

shamittomar


i'd say:

CREATE VIEW .. AS SELECT

when i have querys that i use all the time, but it's not a function =P

like image 39
pleasedontbelong Avatar answered May 09 '23 01:05

pleasedontbelong