With regard to variables, SET can only be used to assign a value to a single variable. SELECT can be used to assign values to multiple variables. SELECT can pull value(s) from database table(s); SET cannot.
--John
-----------------------------------
Behold! As a wild ass in the desert
go forth I to do my work.
--Gurnie Hallock (Dune)
SELECTing from database table(s) will take more resources because of data access. Other than that, there is no resource difference in the two statements.
--John
-----------------------------------
Behold! As a wild ass in the desert
go forth I to do my work.
--Gurnie Hallock (Dune)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.