Is there a way for me to save the values my SELECT
statement returns in to a variable in SQL?
This is what i want to do, first i want to SELECT
all the columns i wanna check so in this case ItemNames
of the items with ItemCategory
US.
SELECT `ItemName` where `ItemCategory´= 'US'
Then I want to save the ItemName
from the statement above into a variable in SQL to use it later on in the same query. Like this:
SELECT `DatabaseID` where `Project` NOT LIKE `myVariable`
Thanks in regards